2020-06-08 15:07:03 +02:00
|
|
|
|
|
|
|
apply plugin: 'java-library'
|
|
|
|
|
|
|
|
java {
|
2024-02-19 17:24:28 +01:00
|
|
|
toolchain {
|
|
|
|
languageVersion = JavaLanguageVersion.of(21)
|
|
|
|
}
|
2020-06-08 15:07:03 +02:00
|
|
|
modularity.inferModulePath.set(true)
|
2023-05-24 12:13:08 +02:00
|
|
|
withSourcesJar()
|
|
|
|
withJavadocJar()
|
2020-06-08 15:07:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes('Implementation-Version': project.version)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType(JavaCompile) {
|
2024-02-19 17:24:28 +01:00
|
|
|
options.fork = true
|
|
|
|
options.forkOptions.jvmArgs += ['-Duser.language=en','-Duser.country=US']
|
|
|
|
options.compilerArgs.add('-Xlint:-requires-transitive-automatic')
|
|
|
|
options.compilerArgs.add('-Xlint:deprecation')
|
2023-03-06 17:31:22 +01:00
|
|
|
options.encoding = 'UTF-8'
|
2020-06-08 15:07:03 +02:00
|
|
|
}
|
|
|
|
|
2023-03-06 17:31:22 +01:00
|
|
|
tasks.withType(Javadoc) {
|
2020-06-08 15:07:03 +02:00
|
|
|
options.addStringOption('Xdoclint:none', '-quiet')
|
2023-03-06 17:31:22 +01:00
|
|
|
options.encoding = 'UTF-8'
|
2020-06-08 15:07:03 +02:00
|
|
|
}
|