Skip to content

Commit

Permalink
Excavator: Use baseline-java-versions to manage Java versions
Browse files Browse the repository at this point in the history
  • Loading branch information
svc-excavator-bot committed Jan 27, 2024
1 parent bafafd6 commit 0e3f67a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ apply plugin: 'com.palantir.external-publish'
apply plugin: 'com.palantir.baseline'
apply plugin: 'com.palantir.git-version'
apply plugin: 'com.palantir.consistent-versions'
apply plugin: 'com.palantir.baseline-java-versions'

version gitVersion()

Expand All @@ -33,12 +34,14 @@ allprojects {
mavenCentral() { metadataSources { mavenPom(); ignoreGradleMetadataRedirection() } }
}

sourceCompatibility = '1.8'
targetCompatibility = '1.8'

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

tasks.check.dependsOn javadoc, checkUnusedDependencies
}

javaVersions {
libraryTarget = 11
}

0 comments on commit 0e3f67a

Please sign in to comment.