2020-05-20 14:56:37 +02:00
|
|
|
|
|
|
|
apply plugin: 'java-library'
|
|
|
|
|
|
|
|
java {
|
|
|
|
modularity.inferModulePath.set(true)
|
|
|
|
}
|
|
|
|
|
|
|
|
compileJava {
|
2022-11-06 21:12:04 +01:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
2020-05-20 14:56:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
compileTestJava {
|
2022-11-06 21:12:04 +01:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
2020-05-20 14:56:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes('Implementation-Title': project.name)
|
|
|
|
attributes('Implementation-Version': project.version)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-05 10:40:42 +02:00
|
|
|
tasks.withType(JavaCompile) {
|
2022-11-06 21:12:04 +01:00
|
|
|
options.compilerArgs.add('-Xlint:all,-exports')
|
|
|
|
options.encoding = 'UTF-8'
|
2020-06-05 10:40:42 +02:00
|
|
|
}
|
|
|
|
|
2022-11-06 21:12:04 +01:00
|
|
|
tasks.withType(Javadoc) {
|
2020-06-05 10:40:42 +02:00
|
|
|
options.addStringOption('Xdoclint:none', '-quiet')
|
2022-11-06 21:12:04 +01:00
|
|
|
options.encoding = 'UTF-8'
|
2020-06-05 10:40:42 +02:00
|
|
|
}
|