[ https://issues.apache.org/jira/browse/BEAM-3255?focusedWorklogId=95210&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-95210 ]
ASF GitHub Bot logged work on BEAM-3255: ---------------------------------------- Author: ASF GitHub Bot Created on: 25/Apr/18 19:59 Start Date: 25/Apr/18 19:59 Worklog Time Spent: 10m Work Description: aaltay closed pull request #5187: [BEAM-3255] Enabling gradle-based release process URL: https://github.com/apache/beam/pull/5187 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/build.gradle b/build.gradle index 6d32af17922..b8119d4ae31 100644 --- a/build.gradle +++ b/build.gradle @@ -49,6 +49,7 @@ buildscript { maven { url "http://repo.spring.io/plugins-release" } } dependencies { + classpath 'net.researchgate:gradle-release:2.6.0' // Enable gradle-based release management classpath "com.gradle:build-scan-plugin:1.13.1" // Enable publishing build scans classpath "net.ltgt.gradle:gradle-apt-plugin:0.13" // Enable a Java annotation processor classpath "com.google.protobuf:protobuf-gradle-plugin:0.8.1" // Enable proto code generation @@ -160,3 +161,11 @@ task pythonPreCommit() { dependsOn ":beam-sdks-python:check" } +apply plugin: 'net.researchgate.release' +release { + revertOnFail = true + tagTemplate = 'v${version}' + git { + requireBranch = 'release-.*|master' + } +} diff --git a/build_rules.gradle b/build_rules.gradle index 647cded120f..fee5755df7a 100644 --- a/build_rules.gradle +++ b/build_rules.gradle @@ -62,7 +62,7 @@ buildscript { // Create a function which returns true iff we are performing a release. def isRelease() { - return project.hasProperty('release') + return project.hasProperty('isRelease') } group = 'org.apache.beam' diff --git a/gradle.properties b/gradle.properties index 4b34251cea1..6b89dae4021 100644 --- a/gradle.properties +++ b/gradle.properties @@ -21,3 +21,4 @@ offlineRepositoryRoot=offline-repository signing.gnupg.executable=gpg signing.gnupg.useLegacyGpg=true +version=2.5.0-SNAPSHOT ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 95210) Time Spent: 6.5h (was: 6h 20m) > Update release process to use Gradle > ------------------------------------ > > Key: BEAM-3255 > URL: https://issues.apache.org/jira/browse/BEAM-3255 > Project: Beam > Issue Type: Sub-task > Components: build-system > Reporter: Luke Cwik > Assignee: Alan Myrvold > Priority: Major > Fix For: Not applicable > > Time Spent: 6.5h > Remaining Estimate: 0h > > This task is about configuring Gradle to generate pom's and artifacts > required to perform a release and update the nightly release snapshot Jenkins > jobs found here > https://github.com/apache/beam/blob/master/.test-infra/jenkins/job_beam_Release_NightlySnapshot.groovy > We will also require some integration tests to run against the released > nightly snapshot artifacts to ensure that what was built is valid. -- This message was sent by Atlassian JIRA (v7.6.3#76005)