2020-05-19 16:06:39 +02:00
|
|
|
|
|
|
|
apply plugin: 'java-library'
|
|
|
|
|
|
|
|
java {
|
|
|
|
modularity.inferModulePath.set(true)
|
|
|
|
}
|
|
|
|
|
|
|
|
compileJava {
|
2022-10-14 18:07:46 +02:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
2020-05-19 16:06:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
compileTestJava {
|
2022-10-14 18:07:46 +02:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
2020-05-19 16:06:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes('Implementation-Version': project.version)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
|
|
|
classifier 'sources'
|
|
|
|
from sourceSets.main.allSource
|
|
|
|
}
|
|
|
|
|
|
|
|
task javadocJar(type: Jar, dependsOn: javadoc) {
|
|
|
|
classifier 'javadoc'
|
2021-10-12 11:48:29 +02:00
|
|
|
from javadoc.destinationDir
|
2020-05-19 16:06:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
archives sourcesJar, javadocJar
|
|
|
|
}
|
2020-06-04 23:41:01 +02:00
|
|
|
|
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.compilerArgs << '-Xlint:all'
|
|
|
|
}
|
|
|
|
|
|
|
|
javadoc {
|
|
|
|
options.addStringOption('Xdoclint:none', '-quiet')
|
|
|
|
}
|