Skip to content

Commit

Permalink
Preparing for release
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewReitz committed Sep 21, 2016
1 parent 385e78b commit f2da5bc
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
10 changes: 10 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# How to Release

1) Prepare for release `./gradlew prepareRelease`
1) Update Version Number (remove -SNAPSHOT)
1) Run all tests `./gradlew clean check fullTest`
1) Run release task `./gradlew release`
1) Update Version Number in build.gradle and README.adoc



12 changes: 12 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,18 @@ ext {
groovyVersion = '2.4.7'
}

task prepareRelease(type: Exec) {
description = 'Prepare for a release: Ensure branch is up to date'
group = 'Publishing'

commandLine 'bash', '-c',
"""
git checkout master
git pull --rebase "https://$project.githubToken@github.com/groovy/groovy-android-gradle-plugin.git" master
git checkout -b release/${version}
"""
}

task tagRelease(type: Exec) {
description = 'Tag the release and push it to github'
group = 'Publishing'
Expand Down
4 changes: 2 additions & 2 deletions groovy-android-gradle-plugin/gradle-plugin.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ task fullTest(type: Test) {
task release {
description = 'Releases a version of the plugin on Artifactory and Bintray'
group = 'Publishing'
dependsOn artifactoryPublish, bintrayUpload, rootProject.tasks.tagRelease
dependsOn fullTest, artifactoryPublish, bintrayUpload, rootProject.tasks.tagRelease
}

tasks.withType(Test) {
Expand All @@ -63,6 +63,6 @@ tasks.withType(Test) {
dependsOn install

testLogging {
exceptionFormat "full"
exceptionFormat 'full'
}
}

0 comments on commit f2da5bc

Please sign in to comment.