Skip to content

Extension of type 'ErrorProneOptions' does not exist. Currently registered extension types: [ExtraPropertiesExtension, AjcAction] #83

Answered by tbroyer
nagkumar asked this question in Q&A
Discussion options

You must be logged in to vote

You might want to use my net.ltgt.nullaway plugin to make it even easier to configure, but indeed changing configure<ErrorProneOptions> to options.errorprone is the right thing to do, as the ErrorProneOptions extension is added to the options object, not the JavaCompile task itself.

Further improvements:

With all those applied, you'd have something like:

nullaway {
  annotatedPackages.add("com.tejasoft")
}
tasks {
  withType<JavaCompile>().configureEach {
    options.errorprone.disableWarning…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by tbroyer
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 #82 on July 19, 2023 13:38.