Skip to content

Compilation error are not printed #87

Answered by gogainda
gogainda asked this question in Q&A
Discussion options

You must be logged in to vote

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:

options.fork = true
    options.annotationProcessorPath += configurations.checkerFrameworkCheckerJar
    options.compilerArgs = ["-Xbootclasspath/p:${configurations.errorProneJavac.asPath}".toString(),
                            '-XDcompilePolicy=simple',
                            '-Xplugin:ErrorProne -Xep:ComparableType:ERROR']
    options.forkOptions.with {
        jvmArgs = ["-Xbootclasspath/p:${configurations.errorProneJavac.asPath}".toString()]
    }

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@gogainda
Comment options

Answer selected by gogainda
@tbroyer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #86 on August 27, 2023 11:51.