cql/gradle/compile/java.gradle

34 lines
605 B
Groovy
Raw Normal View History

apply plugin: 'java-library'
java {
modularity.inferModulePath.set(true)
2023-05-25 14:03:10 +02:00
withSourcesJar()
withJavadocJar()
}
compileJava {
2022-10-02 20:40:11 +02:00
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
compileTestJava {
2022-10-02 20:40:11 +02:00
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
jar {
manifest {
attributes('Implementation-Version': project.version)
}
}
2020-06-05 11:18:47 +02:00
tasks.withType(JavaCompile) {
options.compilerArgs << '-Xlint:all,-fallthrough'
}
javadoc {
options.addStringOption('Xdoclint:none', '-quiet')
}