Skip to content

Commit

Permalink
Release Grails 3.0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
graemerocher committed Jan 21, 2016
1 parent 4aa4705 commit 1bc01ad
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ apply plugin: 'idea'
ext {
bintrayPublish = false
// Sets release version
grailsVersion = '3.0.12.BUILD-SNAPSHOT'
grailsVersion = '3.0.12'
isBuildSnapshot = grailsVersion.endsWith(".BUILD-SNAPSHOT")
isTravisBuild = System.getenv().get("TRAVIS") == 'true'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
public class GrailsUtilTests extends TestCase {

public void testGrailsVersion() {
assertEquals("3.0.12.BUILD-SNAPSHOT", GrailsUtil.getGrailsVersion());
assertEquals("3.0.12", GrailsUtil.getGrailsVersion());
}

@Override
Expand Down
14 changes: 12 additions & 2 deletions travis-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,18 @@ if [[ $TRAVIS_PULL_REQUEST == 'false' && $EXIT_STATUS -eq 0
echo "Running Gradle publish for branch $TRAVIS_BRANCH"

if [[ $TRAVIS_TAG =~ ^v[[:digit:]] ]]; then
./gradlew -Psigning.keyId="$SIGNING_KEY" -Psigning.password="$SIGNING_PASSPHRASE" -Psigning.secretKeyRingFile="${TRAVIS_BUILD_DIR}/secring.gpg" publish uploadArchives closeAndPromoteRepository || EXIT_STATUS=$?
./gradlew assemble || EXIT_STATUS=$?
./gradlew -Psigning.keyId="$SIGNING_KEY" -Psigning.password="$SIGNING_PASSPHRASE" -Psigning.secretKeyRingFile="${TRAVIS_BUILD_DIR}/secring.gpg" publish uploadArchives -x grails-bom:uploadArchives -x grails-dependencies:uploadArchives || EXIT_STATUS=$?
./gradlew closeAndPromoteRepository

if [[ $EXIT_STATUS == 0 ]]; then
./gradlew --stop
./gradlew -Psigning.keyId="$SIGNING_KEY" -Psigning.password="$SIGNING_PASSPHRASE" -Psigning.secretKeyRingFile="${TRAVIS_BUILD_DIR}/secring.gpg" grails-dependencies:uploadArchives grails-bom:uploadArchives || EXIT_STATUS=$?
./gradlew closeAndPromoteRepository
fi

if [[ $EXIT_STATUS == 0 ]]; then
./gradlew assemble || EXIT_STATUS=$?
fi

# Configure GIT
git config --global user.name "$GIT_NAME"
Expand Down

0 comments on commit 1bc01ad

Please sign in to comment.