Skip to content

Commit

Permalink
Update for Apache Snapshot repository
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesfredley committed Sep 8, 2024
1 parent f62fcf8 commit 964e0de
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ buildscript {
}
}

ext {
groovyVersion = System.getenv('CI_GROOVY_VERSION') ?: project.groovyVersion
isCiBuild = System.getenv().get("TRAVIS") == 'true' || (System.getenv().get("CI") as Boolean)
isSnapshot = project.projectVersion.endsWith('-SNAPSHOT')
isReleaseVersion = !isSnapshot
}

repositories {
mavenCentral()
maven { url "https://repo.grails.org/grails/core" }
Expand All @@ -28,13 +35,6 @@ version project.projectVersion
apply plugin: 'java-library'
apply plugin: 'groovy'

ext {
groovyVersion = System.getenv('CI_GROOVY_VERSION') ?: project.groovyVersion
isCiBuild = System.getenv().get("TRAVIS") == 'true' || (System.getenv().get("CI") as Boolean)
isSnapshot = project.projectVersion.endsWith('-SNAPSHOT')
isReleaseVersion = !isSnapshot
}

ext."signing.keyId" = project.hasProperty("signing.keyId") ?: System.getenv('SIGNING_KEY')
ext."signing.secretKeyRingFile" = project.hasProperty("signing.secretKeyRingFile") ?: "${System.properties['user.home']}${File.separator}.gnupg${File.separator}secring.gpg"
ext."signing.password" = project.hasProperty("signing.password") ?: System.getenv('SIGNING_PASSPHRASE')
Expand Down

0 comments on commit 964e0de

Please sign in to comment.