File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ project.ext {
2626
2727 // overall project version
2828 projectVersion = " ${ projectMajorVersion} .${ projectMinorVersion} .${ projectPatchVersion} "
29+ releaseVersion = " ${ projectVersion} .${ releaseType} "
2930 isCiBuild = project. hasProperty(" isCiBuild" )
3031 isBuildSnapshot = releaseType == " BUILD-SNAPSHOT"
3132
Original file line number Diff line number Diff line change @@ -154,14 +154,14 @@ and progress through process manually -> Close -> Publish ... under staging repo
154154 try {
155155 try {
156156 def mavenClent = new RESTClient (" https://repo.maven.apache.org/maven2/" )
157- mavenClent. get(path :" ${ project.group.replace('.','/')} /$project . name /$p rojectVersion /$project . name -${ projectVersion } .jar" )
157+ mavenClent. get(path :" ${ project.group.replace('.','/')} /$project . name /$r eleaseVersion /$project . name -${ releaseVersion } .jar" )
158158 } catch (groovyx.net.http.HttpResponseException e) {
159159 // doesn't exist.. try sync
160160 def client = new RESTClient (' https://api.bintray.com/maven_central_sync/grails/grails-core/' )
161161 client. headers[' Authorization' ] = ' Basic ' + " $bintrayUser :$bintrayKey " . getBytes(' iso-8859-1' ). encodeBase64()
162162 def body = / {}/
163163 def resp = client. post(
164- path : " $bintray . pkg . name /versions/$p rojectVersion " ,
164+ path : " $bintray . pkg . name /versions/$r eleaseVersion " ,
165165 body : body,
166166 requestContentType : JSON
167167 )
Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ if [[ $TRAVIS_REPO_SLUG == "grails/grails-data-mapping" && $TRAVIS_PULL_REQUEST
2020
2121 if [[ -n $TRAVIS_TAG ]]; then
2222 ./gradlew publish bintrayUpload --no-daemon --stacktrace || EXIT_STATUS=$?
23- # if [[ $EXIT_STATUS -eq 0 ]]; then
24- # ./gradlew synchronizeWithMavenCentral --no-daemon
25- # fi
23+ if [[ $EXIT_STATUS -eq 0 ]]; then
24+ ./gradlew synchronizeWithMavenCentral --no-daemon
25+ fi
2626 else
2727 ./gradlew publish --no-daemon --stacktrace || EXIT_STATUS=$?
2828 fi
You can’t perform that action at this time.
0 commit comments