Skip to content

Commit

Permalink
Make sure all properties are annotated, in preparation for Gradle 6
Browse files Browse the repository at this point in the history
Gradle 6 nags users with a deprecation warning in case a property
is not annotated; this should silence it.
  • Loading branch information
tbroyer committed Oct 22, 2019
1 parent ae8abf3 commit db54cfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/net/ltgt/gradle/nullaway/NullAwayPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import org.gradle.api.Named
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.plugins.ExtensionAware
import org.gradle.api.tasks.Internal
import org.gradle.api.tasks.Nested
import org.gradle.api.tasks.Optional
import org.gradle.api.tasks.compile.JavaCompile
Expand Down Expand Up @@ -36,7 +37,7 @@ class NullAwayPlugin : Plugin<Project> {
tasks.withType<JavaCompile>().configureEach {
val nullawayOptions = (options.errorprone as ExtensionAware).extensions.create(EXTENSION_NAME, NullAwayOptions::class, extension)
options.errorprone.errorproneArgumentProviders.add(object : CommandLineArgumentProvider, Named {
override fun getName() = EXTENSION_NAME
@Internal override fun getName() = EXTENSION_NAME

@Suppress("unused")
@Nested
Expand Down

0 comments on commit db54cfb

Please sign in to comment.