2019-12-02 09:34:57 -05:00
|
|
|
// Configure Java project defaults.
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
plugins.withType(JavaPlugin) {
|
|
|
|
sourceCompatibility = "11"
|
|
|
|
targetCompatibility = "11"
|
|
|
|
|
2020-01-20 04:10:48 -05:00
|
|
|
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
|
|
|
}
|
|
|
|
}
|