Skip to content

Commit 0e13d74

Browse files
Excavator: Use baseline-java-versions to manage Java versions
1 parent efb719c commit 0e13d74

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ apply plugin: 'com.palantir.external-publish'
1818
apply plugin: 'com.palantir.baseline'
1919
apply plugin: 'com.palantir.git-version'
2020
apply plugin: 'com.palantir.consistent-versions'
21+
apply plugin: 'com.palantir.baseline-java-versions'
2122

2223
version gitVersion()
2324

@@ -33,12 +34,14 @@ allprojects {
3334
mavenCentral() { metadataSources { mavenPom(); ignoreGradleMetadataRedirection() } }
3435
}
3536

36-
sourceCompatibility = '1.8'
37-
targetCompatibility = '1.8'
3837

3938
tasks.withType(JavaCompile) {
4039
options.compilerArgs += ['-Werror']
4140
}
4241

4342
tasks.check.dependsOn javadoc, checkUnusedDependencies
4443
}
44+
45+
javaVersions {
46+
libraryTarget = 11
47+
}

0 commit comments

Comments
 (0)