File tree Expand file tree Collapse file tree 1 file changed +10
-14
lines changed Expand file tree Collapse file tree 1 file changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -144,19 +144,16 @@ class MultilineFormatter : Serializable {
144
144
}
145
145
146
146
tasks.withType<JavaCompile >().configureEach {
147
- options.errorprone {
148
- disableWarningsInGeneratedCode.set(true )
149
- option(" NullAway:AnnotatedPackages" , " com.mongodb.hibernate" )
150
- }
151
- }
152
- tasks.compileJava {
153
- // The check defaults to a warning, bump it up to an error for the main sources
154
- options.errorprone.error(" NullAway" )
155
147
options.compilerArgs.addAll(listOf (" -Xlint:deprecation" , " -Werror" ))
156
- }
157
-
158
- tasks.compileTestJava {
159
- options.errorprone.isEnabled.set(false )
148
+ if (name == " compileJava" ) {
149
+ options.errorprone {
150
+ disableWarningsInGeneratedCode.set(true )
151
+ option(" NullAway:AnnotatedPackages" , " com.mongodb.hibernate" )
152
+ error(" NullAway" )
153
+ }
154
+ } else {
155
+ options.errorprone.isEnabled.set(false )
156
+ }
160
157
}
161
158
162
159
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -189,5 +186,4 @@ dependencies {
189
186
implementation(libs.hibernate.core)
190
187
implementation(libs.mongo.java.driver.sync)
191
188
implementation(libs.sl4j.api)
192
- }
193
-
189
+ }
You can’t perform that action at this time.
0 commit comments