2022-12-18 17:04:51 +00:00
|
|
|
tasks.withType(JavaCompile).configureEach {
|
2023-09-27 00:47:51 +00:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_21
|
|
|
|
targetCompatibility = JavaVersion.VERSION_21
|
2022-12-18 17:04:51 +00:00
|
|
|
modularity.inferModulePath = true
|
|
|
|
options.encoding = 'UTF-8'
|
|
|
|
options.compilerArgs << "-Xlint:unchecked"
|
2023-11-15 03:25:18 +00:00
|
|
|
// options.compilerArgs << "--enable-preview"
|
2022-12-18 23:31:50 +00:00
|
|
|
|
|
|
|
// These settings are explicitly specified as they can cause problems with annotation processors
|
2022-12-18 17:04:51 +00:00
|
|
|
options.compilerArgs << "-implicit:none"
|
|
|
|
options.incremental = false
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType(JavaExec).configureEach {
|
|
|
|
modularity.inferModulePath = true
|
|
|
|
}
|
|
|
|
|
|
|
|
javadoc{
|
|
|
|
source = sourceSets.main.allJava
|
|
|
|
options {
|
2023-09-27 00:47:51 +00:00
|
|
|
addStringOption('-release', '21')
|
|
|
|
addStringOption('link', 'https://docs.oracle.com/en/java/javase/21/docs/api/')
|
2022-12-18 17:04:51 +00:00
|
|
|
addBooleanOption('html5', true)
|
|
|
|
addStringOption('Xdoclint:none', '-quiet')
|
2024-06-15 10:40:03 +00:00
|
|
|
// addBooleanOption('-enable-preview', true)
|
2022-12-18 17:04:51 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2023-01-27 02:34:46 +00:00
|
|
|
flatDir {
|
|
|
|
dirs "$rootDir/gradle/gradle_scripts"
|
|
|
|
}
|
2022-12-18 17:04:51 +00:00
|
|
|
}
|