2020-09-12 22:42:03 +02:00
|
|
|
|
|
|
|
apply plugin: 'java-library'
|
|
|
|
|
|
|
|
java {
|
|
|
|
modularity.inferModulePath.set(true)
|
2023-04-25 17:47:23 +02:00
|
|
|
withSourcesJar()
|
|
|
|
withJavadocJar()
|
2020-09-12 22:42:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
compileJava {
|
2022-11-03 22:59:37 +01:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
2020-09-12 22:42:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
compileTestJava {
|
2022-11-03 22:59:37 +01:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
2020-09-12 22:42:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes('Implementation-Version': project.version)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-08 22:36:40 +02:00
|
|
|
tasks.withType(JavaCompile) {
|
2022-11-03 22:59:37 +01:00
|
|
|
options.compilerArgs.add('-Xlint:all')
|
|
|
|
options.encoding = 'UTF-8'
|
2021-04-08 22:36:40 +02:00
|
|
|
}
|
2020-09-12 22:42:03 +02:00
|
|
|
|
2022-11-03 22:59:37 +01:00
|
|
|
tasks.withType(Javadoc) {
|
2020-09-12 22:42:03 +02:00
|
|
|
options.addStringOption('Xdoclint:none', '-quiet')
|
2022-11-03 22:59:37 +01:00
|
|
|
options.encoding = 'UTF-8'
|
2020-09-12 22:42:03 +02:00
|
|
|
}
|