2020-05-28 12:09:56 +02:00
|
|
|
|
|
|
|
apply plugin: 'java-library'
|
|
|
|
|
|
|
|
java {
|
|
|
|
modularity.inferModulePath.set(true)
|
2023-05-21 14:09:29 +02:00
|
|
|
withSourcesJar()
|
|
|
|
withJavadocJar()
|
2020-05-28 12:09:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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) {
|
2020-06-03 22:42:41 +02:00
|
|
|
options.compilerArgs << '-Xlint:all,-fallthrough'
|
2020-06-03 18:50:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
javadoc {
|
|
|
|
options.addStringOption('Xdoclint:none', '-quiet')
|
|
|
|
}
|