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 {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
compileTestJava {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
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')
}