Skip to content

Commit

Permalink
Back to snapshot. Add release docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskleeh committed Oct 14, 2019
1 parent a3b6ab8 commit dced3f2
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
22 changes: 22 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Grails Core Release Process

1. Perform the release of any other dependent library and update the version in `gradle.properties`/`grails-bom/plugins.properties`/`grails-bom/profiles.properties`
1. Ensure you have the latest changes locally `git pull`
1. Ensure all changes from previous branches are merged up `git merge ...`
1. Ensure there are no snapshot dependencies
1. Ensure the latest build passed and the latest grails3-functional-tests build passed
1. Set the version to a release version in `build.gradle`
1. Set the version in `grails-core/src/test/groovy/grails/util/GrailsUtilTests.java`
1. Commit the release `git commit -a -m "Release Grails XXX"`
1. Tag the release `git tag vXXX` (Don't forget the `v` prefix!)
1. Push the tag `git push --tags` and waiting for Travis to complete the tagged release https://travis-ci.org/grails/grails-core
1. Verify the release worked
* Run `sdk install grails XXX` and perform smoke tests or creating an application etc.
* Check the documentation published to docs.grails.org/XXX
1. Run the maven central sync `./gradlew sWMC`. Requires BINTRAY_USER/BINTRAY_KEY env vars or bintrayUser/bintrayKey gradle properties
1. Ensure grails.org shows the new release version
1. Ensure the documentation published correctly docs.grails.org
1. Create a release in Github. Copy the previous release and change the relevant info
1. Change the version in `build.gradle` back to a snapshot of next release
1. Push the code `git push`
1. Announce the Release
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ ext {
isJava8Compatible = org.gradle.api.JavaVersion.current().isJava8Compatible()
bintrayPublish = false
// Sets release version
// grailsVersion = '4.0.1.BUILD-SNAPSHOT'
grailsVersion = '4.0.1'
grailsVersion = '4.0.2.BUILD-SNAPSHOT'
//grailsVersion = '4.0.1'
groovyVersion = System.getenv('CI_GROOVY_VERSION') ?: "2.5.6"
isBuildSnapshot = grailsVersion.endsWith(".BUILD-SNAPSHOT")
isTravisBuild = System.getenv().get("TRAVIS") == 'true'
Expand Down
4 changes: 2 additions & 2 deletions grails-core/src/test/groovy/grails/util/GrailsUtilTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
public class GrailsUtilTests extends TestCase {

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

@Override
Expand Down

0 comments on commit dced3f2

Please sign in to comment.