From dced3f2656bf2119e7050c14ad4b7c21503c0006 Mon Sep 17 00:00:00 2001 From: jameskleeh Date: Mon, 14 Oct 2019 16:26:22 -0400 Subject: [PATCH] Back to snapshot. Add release docs --- RELEASE.md | 22 +++++++++++++++++++ build.gradle | 4 ++-- .../groovy/grails/util/GrailsUtilTests.java | 4 ++-- 3 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 RELEASE.md diff --git a/RELEASE.md b/RELEASE.md new file mode 100644 index 00000000000..542f64fc185 --- /dev/null +++ b/RELEASE.md @@ -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 diff --git a/build.gradle b/build.gradle index ee35058eff4..f86e2b32c8a 100644 --- a/build.gradle +++ b/build.gradle @@ -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' diff --git a/grails-core/src/test/groovy/grails/util/GrailsUtilTests.java b/grails-core/src/test/groovy/grails/util/GrailsUtilTests.java index 152e0abbcdd..5ce4c70d362 100644 --- a/grails-core/src/test/groovy/grails/util/GrailsUtilTests.java +++ b/grails-core/src/test/groovy/grails/util/GrailsUtilTests.java @@ -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