Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ale5000-git committed Jan 1, 2025
1 parent bf11fe3 commit 8d367f6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ plugins {
//id 'com.github.spotbugs' version '4.7.6'
}

develocity.buildScan {
termsOfUseUrl.set 'https://gradle.com/help/legal-terms-of-use'
termsOfUseAgree.set 'yes'
publishing.onlyIf { System.getenv('UPLOAD_BUILD_SCAN') != null }
}

/* ===FUNCTIONS=== */

private void initialize() {
Expand All @@ -35,8 +41,8 @@ private void initialize() {
println 'Version: ' + version
println 'OS: ' + System.properties['os.name']

if(JavaVersion.current() < JavaVersion.VERSION_11) {
throw new GradleException('This require Java 11 or later')
if(JavaVersion.current() < JavaVersion.VERSION_17) {
throw new GradleException('This require Java 17 or later')
}
}

Expand Down Expand Up @@ -86,12 +92,6 @@ initialize()

/* ===BLOCKS=== */

develocity.buildScan {
termsOfUseUrl.set 'https://gradle.com/help/legal-terms-of-use'
termsOfUseAgree.set 'yes'
publishing.onlyIf { System.getenv('UPLOAD_BUILD_SCAN') != null }
}

base {
archivesName = getOurArchivesBaseName()
}
Expand Down

0 comments on commit 8d367f6

Please sign in to comment.