2020-05-20 11:25:27 +02:00
|
|
|
|
|
|
|
apply plugin: 'java-library'
|
|
|
|
|
|
|
|
java {
|
|
|
|
modularity.inferModulePath.set(true)
|
2023-05-26 15:30:45 +02:00
|
|
|
withSourcesJar()
|
|
|
|
withJavadocJar()
|
2020-05-20 11:25:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
compileJava {
|
2022-11-03 17:24:27 +01:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
2020-05-20 11:25:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
compileTestJava {
|
2022-11-03 17:24:27 +01:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
2020-05-20 11:25:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes('Implementation-Version': project.version)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-03 17:24:27 +01:00
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.compilerArgs << '-Xlint:all'
|
|
|
|
options.encoding = 'UTF-8'
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType(Javadoc) {
|
|
|
|
options.addStringOption('Xdoclint:none', '-quiet')
|
|
|
|
options.encoding = 'UTF-8'
|
|
|
|
}
|