2020-05-28 12:09:56 +02:00
|
|
|
|
|
|
|
apply plugin: 'java-library'
|
|
|
|
|
|
|
|
java {
|
2023-10-21 22:34:30 +02:00
|
|
|
toolchain {
|
|
|
|
languageVersion = JavaLanguageVersion.of(21)
|
|
|
|
}
|
2020-05-28 12:09:56 +02:00
|
|
|
modularity.inferModulePath.set(true)
|
2023-05-21 14:09:29 +02:00
|
|
|
withSourcesJar()
|
|
|
|
withJavadocJar()
|
2020-05-28 12:09:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes('Implementation-Version': project.version)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-03 18:50:58 +02:00
|
|
|
tasks.withType(JavaCompile) {
|
2023-10-21 22:34:30 +02:00
|
|
|
options.fork = true
|
|
|
|
options.forkOptions.jvmArgs += ['-Duser.language=en','-Duser.country=US']
|
2020-06-03 22:42:41 +02:00
|
|
|
options.compilerArgs << '-Xlint:all,-fallthrough'
|
2023-10-21 22:34:30 +02:00
|
|
|
options.encoding = 'UTF-8'
|
2020-06-03 18:50:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
javadoc {
|
|
|
|
options.addStringOption('Xdoclint:none', '-quiet')
|
2023-10-21 22:34:30 +02:00
|
|
|
options.encoding = 'UTF-8'
|
2020-06-03 18:50:58 +02:00
|
|
|
}
|