mirror of https://github.com/apache/lucene.git
LUCENE-9436: use release flag for javac rather than source and target.
This commit is contained in:
parent
8cf84a3725
commit
f9fff6e1ed
|
@ -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 += [
|
||||
|
|
Loading…
Reference in New Issue