@@ -208,22 +208,16 @@ tasks.withType<ShadowJar>().configureEach {
208208
209209tasks.withType<JavaCompile >().configureEach {
210210 options.encoding = " UTF-8"
211- }
212-
213- tasks.compileJava {
214211 options.compilerArgs.addAll(listOf (
215- " -Xlint:all" , // Enables all recommended warnings.
216- " -Werror" , // Terminates compilation when warnings occur.
217- " -parameters" , // Generates metadata for reflection on method parameters.
218- " --module-version" , " ${project.version} "
212+ " -Xlint:all" , // Enables all recommended warnings.
213+ " -Werror" , // Terminates compilation when warnings occur.
214+ " -parameters" , // Generates metadata for reflection on method parameters.
219215 ))
220216}
221217
222- tasks.compileTestJava {
218+ tasks.compileJava {
223219 options.compilerArgs.addAll(listOf (
224- " -Xlint:all" , // Enables all recommended warnings.
225- " -Werror" , // Terminates compilation when warnings occur.
226- " -parameters" // Generates metadata for reflection on method parameters.
220+ " --module-version" , " ${project.version} "
227221 ))
228222}
229223
@@ -279,10 +273,5 @@ pluginManager.withPlugin("java-test-fixtures") {
279273 }
280274 tasks.named<JavaCompile >(" compileTestFixturesJava" ) {
281275 options.release = extension.testJavaVersion.map { it.majorVersion.toInt() }
282- options.compilerArgs.addAll(listOf (
283- " -Xlint:all" , // Enables all recommended warnings.
284- " -Werror" , // Terminates compilation when warnings occur.
285- " -parameters" // Generates metadata for reflection on method parameters.
286- ))
287276 }
288277}
0 commit comments