archive/gradle/compile/java.gradle

31 lines
562 B
Groovy
Raw Normal View History

2020-05-28 12:09:56 +02:00
apply plugin: 'java-library'
java {
modularity.inferModulePath.set(true)
}
compileJava {
2022-10-07 15:11:38 +02:00
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
2020-05-28 12:09:56 +02:00
}
compileTestJava {
2022-10-07 15:11:38 +02:00
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
2020-05-28 12:09:56 +02:00
}
jar {
manifest {
attributes('Implementation-Version': project.version)
}
}
2020-06-03 18:50:58 +02:00
tasks.withType(JavaCompile) {
options.compilerArgs << '-Xlint:all,-fallthrough'
2020-06-03 18:50:58 +02:00
}
javadoc {
options.addStringOption('Xdoclint:none', '-quiet')
}