LUCENE-9436: use release flag for javac rather than source and target.

This commit is contained in:
Dawid Weiss 2020-07-20 12:35:29 +02:00
parent 8cf84a3725
commit f9fff6e1ed
1 changed files with 6 additions and 0 deletions

View File

@ -22,6 +22,12 @@ allprojects {
sourceCompatibility = "11"
targetCompatibility = "11"
// Use 'release' flag instead of 'source' and 'target'
tasks.withType(JavaCompile) {
options.compilerArgs += ["--release", "11"]
}
// Configure warnings.
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.compilerArgs += [