2020-05-26 11:28:09 +02:00
|
|
|
|
|
|
|
apply plugin: 'java-library'
|
|
|
|
|
|
|
|
java {
|
|
|
|
modularity.inferModulePath.set(true)
|
2023-05-25 15:29:57 +02:00
|
|
|
withSourcesJar()
|
|
|
|
withJavadocJar()
|
2020-05-26 11:28:09 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
compileJava {
|
2023-05-25 15:29:57 +02:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
2020-05-26 11:28:09 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
compileTestJava {
|
2023-05-25 15:29:57 +02:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
2020-05-26 11:28:09 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes('Implementation-Version': project.version)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-25 15:29:57 +02:00
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.compilerArgs << '-Xlint:all,-fallthrough'
|
2020-05-26 11:28:09 +02:00
|
|
|
}
|
|
|
|
|
2023-05-25 15:29:57 +02:00
|
|
|
javadoc {
|
|
|
|
options.addStringOption('Xdoclint:none', '-quiet')
|
2021-12-21 22:00:28 +01:00
|
|
|
}
|