vach :
In a small set of sbt projects we needed a protobuf/grpc compilation, and because only Gradle has normal support for that we used it to just do the protobuf related tasks.
Sometimes it will randomly fail compiling the very same thing and will succeed on retry, we determined that its because of incremental Java compilation.
I want to disable all sorts of incubating features and incremental compilations, I want this thing to be deterministic.
For that I tried
compileJava {
//enable compilation in a separate daemon process
options.fork = false
//enable incremental compilation
options.incremental = false
}
but Gradle will still give output like this (apparently ignoring those flags)
Parallel execution is an incubating feature.
Incremental java compilation is an incubating feature.
:deleteGeneratedSource
:clean
:extractIncludeProto
:extractProto UP-TO-DATE
:generateProto
:recompileProto
So how do we disable parallel execution and incremental Java compilation?
Sergey Yakovlev :
Try to add
org.gradle.daemon=false
org.gradle.parallel=false
to the gradle.properties
file, it can help you in your problem.
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=450153&siteId=1