Skip to content

Commit 8c935cd

Browse files
committed
Publish all artifacts to a single Bintray project
This makes the Maven central sync far less painful. Resolves #29
1 parent f99a7e3 commit 8c935cd

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.circleci/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ jobs:
7474
command: openssl enc -d -aes-256-cbc -md sha512 -pbkdf2 -iter 1000 -in gradle.properties.enc -out gradle.properties -pass "pass:$KEY"
7575
- deploy:
7676
name: Maven Central sync
77-
command: ./gradlew mavenCentralSync -Prelease.useLastTag=true -x bintrayPublish -x bintrayUpload -x bintrayCreateVersion -x bintrayCreatePackage
77+
# arbitrarily choose one project to run the `mavenCentralSync` task since all use the same Bintray package
78+
command: ./gradlew :prometheus-rsocket-client:mavenCentralSync -Prelease.useLastTag=true -x bintrayPublish
7879
# Maven Central Sync might take more than 10 minutes per artifact
7980
no_output_timeout: 30m
8081

build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ allprojects {
2525
}
2626
}
2727

28+
if (project.extensions.findByName('bintray')) {
29+
bintray.labels = ['micrometer', 'metrics', 'prometheus', 'rsocket']
30+
bintray.packageName = 'prometheus-rsocket-proxy'
31+
}
32+
2833
afterEvaluate { project ->
2934
println "I'm building $project.name with version $project.version"
3035
}

gradle/deploy.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ elif [ $CIRCLE_TAG ]; then
1515
openssl enc -d -aes-256-cbc -md sha512 -pbkdf2 -iter 1000 -in gradle.properties.enc -out gradle.properties -pass "pass:$KEY"
1616
case "$CIRCLE_TAG" in
1717
*-rc\.*)
18-
./gradlew -Prelease.disableGitChecks=true -Prelease.useLastTag=true candidate dockerPushImage $SWITCHES -x release
18+
./gradlew -Prelease.disableGitChecks=true -Prelease.useLastTag=true candidate bintrayUpload $SWITCHES -x release -x bintrayPublish
19+
./gradlew -Prelease.disableGitChecks=true -Prelease.useLastTag=true :prometheus-rsocket-client:bintrayPublish dockerPushImage $SWITCHES -x bintrayUpload
1920
;;
2021
*)
21-
./gradlew -Prelease.disableGitChecks=true -Prelease.useLastTag=true final dockerPushImage $SWITCHES -x release -x artifactoryPublish
22+
./gradlew -Prelease.disableGitChecks=true -Prelease.useLastTag=true final bintrayUpload $SWITCHES -x release -x artifactoryPublish -x bintrayPublish
23+
./gradlew -Prelease.disableGitChecks=true -Prelease.useLastTag=true :prometheus-rsocket-client:bintrayPublish dockerPushImage $SWITCHES -x bintrayUpload
2224
./gradlew -Doverride.docker.springBootApplication.tag=micrometermetrics/prometheus-rsocket-proxy:latest dockerPushImage
2325
;;
2426
esac

0 commit comments

Comments
 (0)