lucene/gradle/defaults-java.gradle

23 lines
529 B
Groovy
Raw Normal View History

2019-12-02 09:34:57 -05:00
// Configure Java project defaults.
allprojects {
plugins.withType(JavaPlugin) {
sourceCompatibility = "11"
targetCompatibility = "11"
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.compilerArgs += [
"-Xlint",
"-Xlint:-deprecation",
"-Xlint:-serial",
"-Xdoclint:all/protected",
"-Xdoclint:-missing",
"-Xdoclint:-accessibility",
"-proc:none", // proc:none was added because of LOG4J2-1925 / JDK-8186647
]
}
2019-12-02 09:34:57 -05:00
}
}