File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,12 @@ plugins {
1111 id ' io.github.gradle-nexus.publish-plugin' version ' 1.0.0'
1212 id ' com.github.ben-manes.versions' version ' 0.51.0'
1313 id " me.champeau.jmh" version " 0.7.3"
14+ id " net.ltgt.errorprone" version ' 4.2.0'
1415}
1516
1617java {
1718 toolchain {
18- languageVersion = JavaLanguageVersion . of(11 )
19+ languageVersion = JavaLanguageVersion . of(17 )
1920 }
2021}
2122
@@ -75,6 +76,20 @@ dependencies {
7576 // this is needed for the idea jmh plugin to work correctly
7677 jmh ' org.openjdk.jmh:jmh-core:1.37'
7778 jmh ' org.openjdk.jmh:jmh-generator-annprocess:1.37'
79+
80+ errorprone ' com.uber.nullaway:nullaway:0.12.6'
81+ errorprone ' com.google.errorprone:error_prone_core:2.37.0'
82+ }
83+
84+
85+ tasks. compileJava {
86+ options. release = 11
87+ options. errorprone {
88+ disableAllChecks = true
89+ option(" NullAway:OnlyNullMarked" , " true" )
90+ option(" NullAway:JSpecifyMode" , " true" )
91+ error(" NullAway" )
92+ }
7893}
7994
8095task sourcesJar (type : Jar ) {
You can’t perform that action at this time.
0 commit comments