From 0955b27c052fdf6822e907d3f5b893f7062c98c2 Mon Sep 17 00:00:00 2001 From: Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> Date: Thu, 22 Sep 2022 17:40:48 +0100 Subject: [PATCH] Excavator: Use baseline-java-versions to manage Java versions (#380) --- build.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 43dfa0a3..7c2b9062 100644 --- a/build.gradle +++ b/build.gradle @@ -33,6 +33,7 @@ apply plugin: 'com.palantir.baseline' apply plugin: 'com.palantir.external-publish' apply plugin: 'com.palantir.consistent-versions' apply plugin: 'com.palantir.git-version' +apply plugin: 'com.palantir.baseline-java-versions' allprojects { group 'com.palantir.human-readable-types' @@ -48,7 +49,6 @@ subprojects { apply plugin: 'com.palantir.baseline-class-uniqueness' apply plugin: 'com.palantir.java-format' - sourceCompatibility = 1.8 tasks.withType(JavaCompile) { options.compilerArgs += ['-Werror'] @@ -60,3 +60,7 @@ subprojects { systemProperty 'recreate', System.getProperty('recreate', 'false') } } + +javaVersions { + libraryTarget = 11 +}