Skip to content

Commit 822c827

Browse files
committed
For the next release activate central sync
1 parent 277ca85 commit 822c827

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

gradle/publishing.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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/$projectVersion/$project.name-${projectVersion}.jar")
157+
mavenClent.get(path:"${project.group.replace('.','/')}/$project.name/$releaseVersion/$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/$projectVersion",
164+
path: "$bintray.pkg.name/versions/$releaseVersion",
165165
body: body,
166166
requestContentType: JSON
167167
)

travis-publish.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)