-
Hi, Build file looks like this:
and Java class:
When I am trying to build it with Gradle 7.4 with Have I missed here? Attached an example project pubsub-push.zip |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hmm, you're not using the plugin so this would be better in a more general Gradle or Error Prone forum/community. That being said, your options.forkOptions.with {
jvmArgs = [
"-Xbootclasspath/p:${configurations.errorProneJavac.asPath}",
"-XDcompilePolicy=simple",
"-Xplugin:ErrorProne -Xep:ComparableType:ERROR"
] I'd recommend you use the plugin though. plugins {
id 'java'
id 'net.ltgt.errorprone' version '3.1.0'
}
group 'com.example'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
errorprone 'com.google.errorprone:error_prone_core:2.10.0'
errorprone 'org.checkerframework:dataflow-errorprone:3.27.0'
}
compileJava {
options.errorprone.error("ComparableType")
}
compileTestJava {
options.errorprone.enabled = false
} |
Beta Was this translation helpful? Give feedback.
I tried that but then it failed again with
Unrecognized option: -XDcompilePolicy=simple
after I moved it under
compilerArgs
- it started working.This is config that works for me: