mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 09:00:26 +00:00
34 lines
No EOL
1,015 B
Groovy
34 lines
No EOL
1,015 B
Groovy
tasks.withType(JavaCompile).configureEach {
|
|
sourceCompatibility = JavaVersion.VERSION_21
|
|
targetCompatibility = JavaVersion.VERSION_21
|
|
modularity.inferModulePath = true
|
|
options.encoding = 'UTF-8'
|
|
options.compilerArgs << "-Xlint:unchecked"
|
|
// options.compilerArgs << "--enable-preview"
|
|
|
|
// These settings are explicitly specified as they can cause problems with annotation processors
|
|
options.compilerArgs << "-implicit:none"
|
|
options.incremental = false
|
|
}
|
|
|
|
tasks.withType(JavaExec).configureEach {
|
|
modularity.inferModulePath = true
|
|
}
|
|
|
|
javadoc{
|
|
source = sourceSets.main.allJava
|
|
options {
|
|
addStringOption('-release', '21')
|
|
addStringOption('link', 'https://docs.oracle.com/en/java/javase/21/docs/api/')
|
|
addBooleanOption('html5', true)
|
|
addStringOption('Xdoclint:none', '-quiet')
|
|
// addBooleanOption('-enable-preview', true)
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
flatDir {
|
|
dirs "$rootDir/gradle/gradle_scripts"
|
|
}
|
|
} |