Skip to content

Commit

Permalink
Added support for Mn and RCn releases
Browse files Browse the repository at this point in the history
  • Loading branch information
cer committed Jun 8, 2019
1 parent f2ea657 commit 80ec800
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ subprojects {
key = System.getenv('BINTRAY_KEY')
configurations = ['archives']
pkg {
repo = 'eventuate-maven-release'
repo = "eventuate-maven-$bintrayRepoType"
name = 'eventuate-client-java'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/eventuate-clients/eventuate-client-java'
Expand Down
16 changes: 14 additions & 2 deletions deploy-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,24 @@
BRANCH=$(git rev-parse --abbrev-ref HEAD)

if ! [[ $BRANCH =~ ^[0-9]+ ]] ; then
echo Not release $BRANCH
echo Not release $BRANCH - no PUSH
exit 0
elif [[ $BRANCH =~ RELEASE$ ]] ; then
BINTRAY_REPO_TYPE=release
elif [[ $BRANCH =~ M[0-9]+$ ]] ; then
BINTRAY_REPO_TYPE=milestone
elif [[ $BRANCH =~ RC[0-9]+$ ]] ; then
BINTRAY_REPO_TYPE=rc
else
echo cannot figure out bintray for this branch $BRANCH
exit -1
fi

echo BINTRAY_REPO_TYPE=${BINTRAY_REPO_TYPE}

VERSION=$BRANCH

$PREFIX ./gradlew -P version=${VERSION} \
-P deployUrl=https://dl.bintray.com/eventuateio-oss/eventuate-maven-release \
-P bintrayRepoType=${BINTRAY_REPO_TYPE} \
-P deployUrl=https://dl.bintray.com/eventuateio-oss/eventuate-maven-${BINTRAY_REPO_TYPE} \
testClasses bintrayUpload
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
org.gradle.jvmargs=-XX:MaxPermSize=512m -Xmx1G

deployUrl=file:///Users/cer/.m2/testdeploy
bintrayRepoType=defineMe
eventuateMavenRepoUrl=file:///Users/cer/.m2/testdeploy,https://dl.bintray.com/eventuateio-oss/eventuate-maven-release

springBootVersion=1.4.7.RELEASE

version=0.20.0-SNAPSHOT

rxJavaVersion=1.1.5
eventuateCommonVersion=0.4.0.RELEASE
eventuateCommonVersion=0.4.0.RELEASE

0 comments on commit 80ec800

Please sign in to comment.