Skip to content

Commit

Permalink
Use Java 8 to build the release
Browse files Browse the repository at this point in the history
  • Loading branch information
smillst authored Sep 30, 2022
1 parent 1af86bf commit 8dda0e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -1051,6 +1051,9 @@ task releaseBuild(group: 'Build') {
dependsOn(clean)
doFirst {
release = true
if (!isJava8) {
throw new RuntimeException("You must use Java 8 when making a release. You are using " + JavaVersion.current() + ".")
}
}
// Use finalizedBy rather than dependsOn so that release is set to true before any of the tasks are run.
finalizedBy(buildAll)
Expand Down

0 comments on commit 8dda0e9

Please sign in to comment.