2022-02-10 18:41:26 +01:00
|
|
|
|
|
|
|
apply plugin: 'java-library'
|
|
|
|
|
|
|
|
java {
|
|
|
|
modularity.inferModulePath.set(true)
|
2023-04-28 11:05:24 +02:00
|
|
|
withSourcesJar()
|
|
|
|
withJavadocJar()
|
2022-02-10 18:41:26 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
compileJava {
|
2022-10-30 01:20:18 +02:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
2022-02-10 18:41:26 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
compileTestJava {
|
2022-10-30 01:20:18 +02:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
2022-02-10 18:41:26 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes('Implementation-Version': project.version)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType(JavaCompile) {
|
2022-10-30 01:20:18 +02:00
|
|
|
options.compilerArgs << '-Xlint:all,-fallthrough,-exports,-try'
|
2022-02-10 18:41:26 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
javadoc {
|
|
|
|
options.addStringOption('Xdoclint:none', '-quiet')
|
|
|
|
}
|