This message was deleted.
# community-support
s
This message was deleted.
m
can anybody help..
v
Besides that you should not start every build with "clean" (that was necessary with Maven builds as the are unreliable and non-reproducible), it is hard to guess without seeing your build scripts.
m
attaching build script..
v
That's only a part of the picture. There are various included script plugins. Best would be if you can knit an MCVE (https://stackoverflow.com/help/mcve)
Btw.
assert System.properties["java.specification.version"] == "1.8" || "11" || "12" || "13"
will always be
true
. You basically wrote
assert System.properties["java.specification.version"] == "1.8" || true || true || true
m
can you pls suggest me the correct block of code here? Because I am confused with the above basically block.. What should have been the correct block of code here? help me understand..
meanwhile I am working on MCVE
v
What you have is in prose: assert that either
java.specification.version
is equal to
"1.8"
or
"11"
is
true
or
"12"
is
true
or
"13"
is
true
And according to Groovy truth rules, the last three are always
true
.
Actually, if you want a certain version for building your project, I'd recommend you use the JVM Toolchains feature instead, so the Java version to run Gradle is decoupled from the Java version used to build and run your code.
👍 1