Skip to content

Commit cfe4f51

Browse files
committed
Back to snapshot
1 parent 2b2e78d commit cfe4f51

File tree

3 files changed

+49
-4
lines changed

3 files changed

+49
-4
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ apply plugin: 'idea'
2222
ext {
2323
bintrayPublish = false
2424
// Sets release version
25-
grailsVersion = '3.2.0.RC1'
25+
grailsVersion = '3.2.0.BUILD-SNAPSHOT'
2626
isBuildSnapshot = grailsVersion.endsWith(".BUILD-SNAPSHOT")
2727
isTravisBuild = System.getenv().get("TRAVIS") == 'true'
2828

grails-core/src/test/groovy/grails/util/GrailsUtilTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
public class GrailsUtilTests extends TestCase {
2626

2727
public void testGrailsVersion() {
28-
assertEquals("3.2.0.RC1", GrailsUtil.getGrailsVersion());
28+
assertEquals("3.2.0.BUILD-SNAPSHOT", GrailsUtil.getGrailsVersion());
2929
}
3030

3131
@Override

travis-publish-archives.sh

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,54 @@ if [[ $TRAVIS_PULL_REQUEST == 'false'
3434
echo "Running Gradle publish for branch $TRAVIS_BRANCH"
3535

3636
if [[ $TRAVIS_TAG =~ ^v[[:digit:]] ]]; then
37-
./gradlew -Psigning.keyId="$SIGNING_KEY" -Psigning.password="$SIGNING_PASSPHRASE" -Psigning.secretKeyRingFile="${TRAVIS_BUILD_DIR}/secring.gpg" grails-dependencies:uploadArchives grails-bom:uploadArchives || EXIT_STATUS=$?
37+
./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=$?
3838
./gradlew closeAndPromoteRepository
39-
./gradlew assemble || EXIT_STATUS=$?
39+
40+
if [[ $EXIT_STATUS == 0 ]]; then
41+
./gradlew --stop
42+
# wait 30 seconds to ensure the previous promotion completes
43+
sleep 30
44+
./gradlew -Psigning.keyId="$SIGNING_KEY" -Psigning.password="$SIGNING_PASSPHRASE" -Psigning.secretKeyRingFile="${TRAVIS_BUILD_DIR}/secring.gpg" grails-dependencies:uploadArchives grails-bom:uploadArchives || EXIT_STATUS=$?
45+
./gradlew closeAndPromoteRepository
46+
fi
47+
48+
if [[ $EXIT_STATUS == 0 ]]; then
49+
./gradlew assemble || EXIT_STATUS=$?
50+
fi
51+
52+
# Configure GIT
53+
git config --global credential.helper "store --file=~/.git-credentials"
54+
echo "https://$GH_TOKEN:@github.com" > ~/.git-credentials
55+
56+
git config --global user.name "$GIT_NAME"
57+
git config --global user.email "$GIT_EMAIL"
58+
59+
# Tag and release the docs
60+
git clone https://${GH_TOKEN}@github.com/grails/grails-doc.git grails-doc
61+
cd grails-doc
62+
63+
echo "grails.version=${TRAVIS_TAG:1}" > gradle.properties
64+
git add gradle.properties
65+
git commit -m "Release $TRAVIS_TAG docs"
66+
git tag $TRAVIS_TAG
67+
git push --tags
68+
git push
69+
cd ..
70+
71+
# Update the website
72+
git clone https://${GH_TOKEN}@github.com/grails/grails-static-website.git
73+
cd grails-static-website
74+
echo -e "${TRAVIS_TAG:1}" >> generator/src/main/resources/versions
75+
git add generator/src/main/resources/versions
76+
git commit -m "Release Grails $TRAVIS_TAG"
77+
git push
78+
cd ..
79+
80+
# Rebuild Artifactory index
81+
curl -H "X-Api-Key:$ARTIFACTORY_API_KEY" -X POST "http://repo.grails.org/grails/api/maven?repos=libs-releases-local,plugins-releases-local,plugins3-releases-local,core&force=1"
82+
83+
elif [[ $TRAVIS_BRANCH =~ ^master|[23]\..\.x$ ]]; then
84+
./gradlew -Psigning.keyId="$SIGNING_KEY" -Psigning.password="$SIGNING_PASSPHRASE" -Psigning.secretKeyRingFile="${TRAVIS_BUILD_DIR}/secring.gpg" publish || EXIT_STATUS=$?
4085
fi
4186

4287
fi

0 commit comments

Comments
 (0)