2020-11-03 11:07:42 +01:00
|
|
|
|
|
|
|
apply plugin: 'java-library'
|
|
|
|
|
|
|
|
java {
|
|
|
|
modularity.inferModulePath.set(true)
|
2023-05-26 10:11:40 +02:00
|
|
|
withSourcesJar()
|
|
|
|
withJavadocJar()
|
2020-11-03 11:07:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
compileJava {
|
2022-04-29 17:14:15 +02:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
2020-11-03 11:07:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
compileTestJava {
|
2022-04-29 17:14:15 +02:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
2020-11-03 11:07:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes('Implementation-Version': project.version)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType(JavaCompile) {
|
2022-11-10 15:27:43 +01:00
|
|
|
options.compilerArgs.add('-Xlint:all,-exports')
|
|
|
|
options.encoding = 'UTF-8'
|
2020-11-03 11:07:42 +01:00
|
|
|
}
|
|
|
|
|
2022-11-10 15:27:43 +01:00
|
|
|
tasks.withType(Javadoc) {
|
2020-11-03 11:07:42 +01:00
|
|
|
options.addStringOption('Xdoclint:none', '-quiet')
|
2022-11-10 15:27:43 +01:00
|
|
|
options.encoding = 'UTF-8'
|
2020-11-03 11:07:42 +01:00
|
|
|
}
|