Skip to content

Commit

Permalink
Upgrade nebula.netflixoss to replace bintray publication (#35)
Browse files Browse the repository at this point in the history
As you might be aware, JFrog is sunsetting Bintray and
JCenter:

https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/

This upgrades to Nebula NetflixOSS which will publish to
Nebula's OSS repos and Maven Central.

Repositories based on status:

https://netflixoss.jfrog.io/artifactory/maven-oss-snapshots
https://netflixoss.jfrog.io/artifactory/maven-oss-candidates
https://netflixoss.jfrog.io/artifactory/maven-oss-releases
  • Loading branch information
rpalcolea authored Mar 4, 2021
1 parent c232de7 commit b220107
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 21 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,5 @@ atlassian-ide-plugin.xml

# NetBeans specific files/directories
.nbattrs
# publishing secrets
secrets/signing-key
10 changes: 6 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ install: "./installViaTravis.sh"
script: "./buildViaTravis.sh"
env:
global:
- secure: WxJR16GybUBMDS3P+m+VkfjzTKvWf09RjWoZJl1xK3CNxCYM0LX46qmeopG6TBNZUR01mMdaF4CjLgCq0OxpPOjL/PuTwoN4rrGZSYY138M6/6i3PBoGUhXmNxY66I839k3vBbdKvzjPZnKTfkIcm3vIftNRl1Dn+70rp3cbG2I=
- secure: bjRJOMpCyL4OBt2PzUNcCPSwSJkvKGQ5LfQ0ras5S6GdhJhDAXlOZdgv7L6bgm9eAZGHZsk3AzedggqF6sslFF55Ao+y5RJIYv3ygB2J2u7LSxdr8eS8JfASB/L3i8mNVTALRLT+WmXhZmJwDuHdnS8OeisQPaZsuHheMd/c4Mw=
- secure: on7ynOcEEjWE0ANWYlL4nFCwf8c22t0ryT0k5q+4La2hblBc+xNH45OqRug2jmz04g8tqwx+YZT29eZncrhJUEVhnSaQAio7B/muRc2pesDembIHkylD6A110/jATnPDiQ2HG7czFqKO/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ep5LbI+UnKPOUeK1A3CPerDrw7oi/eI3lk4IjA=
- secure: PjATPAO4y4+QGI5D5uXZRh2cwD70oCywHaDmlw+dYZTCH+cUO/VpiofBLVoIvOJcSM6uyqo4mYEanIBU/GD+A2brSYphhlHRnTu/7xQXdT4p88wZ43J1MM2HG3ku0l+/EH2gKV8L/OCvsftOwevqFT9tk/1bD181sSyODNQL8D4=
cache:
directories:
- "$HOME/.gradle/caches"
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'nebula.netflixoss' version '8.6.0'
id 'nebula.netflixoss' version '9.1.0'
id 'java'
id 'groovy'
}
Expand Down
8 changes: 5 additions & 3 deletions buildViaTravis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,20 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
./gradlew build
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then
echo -e 'Build Branch with Snapshot => Branch ['$TRAVIS_BRANCH']'
./gradlew -Prelease.travisci=true -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" -PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" build snapshot
./gradlew -Prelease.travisci=true -PnetflixOss.username="$NETFLIX_OSS_REPO_USERNAME" -PnetflixOss.password="$NETFLIX_OSS_REPO_PASSWORD" -Psonatype.signingPassword="$NETFLIX_OSS_SIGNING_PASSWORD" build snapshot
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" != "" ]; then
echo -e 'Build Branch for Release => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
case "$TRAVIS_TAG" in
*-rc\.*)
./gradlew -Prelease.travisci=true -Prelease.useLastTag=true -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" -PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" candidate
./gradlew -Prelease.travisci=true -PnetflixOss.username="$NETFLIX_OSS_REPO_USERNAME" -PnetflixOss.password="$NETFLIX_OSS_REPO_PASSWORD" -Psonatype.signingPassword="$NETFLIX_OSS_SIGNING_PASSWORD" -Prelease.useLastTag=true candidate
;;
*)
./gradlew -Prelease.travisci=true -Prelease.useLastTag=true -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" -PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" final
./gradlew -Prelease.travisci=true -PnetflixOss.username="$NETFLIX_OSS_REPO_USERNAME" -PnetflixOss.password="$NETFLIX_OSS_REPO_PASSWORD" -Psonatype.username="$NETFLIX_OSS_SONATYPE_USERNAME" -Psonatype.password="$NETFLIX_OSS_SONATYPE_PASSWORD" -Psonatype.signingPassword="$NETFLIX_OSS_SIGNING_PASSWORD" -Prelease.useLastTag=true final
;;
esac
else
echo -e 'WARN: Should not be here => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG'] Pull Request ['$TRAVIS_PULL_REQUEST']'
./gradlew build
fi


2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
18 changes: 6 additions & 12 deletions installViaTravis.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
#!/bin/bash
# This script will build the project.

if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
echo -e "Assemble Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH]"
./gradlew assemble
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then
echo -e 'Assemble Branch with Snapshot => Branch ['$TRAVIS_BRANCH']'
./gradlew -Prelease.travisci=true assemble
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" != "" ]; then
echo -e 'Assemble Branch for Release => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
./gradlew -Prelease.travisci=true -Prelease.useLastTag=true assemble
else
echo -e 'WARN: Should not be here => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG'] Pull Request ['$TRAVIS_PULL_REQUEST']'
./gradlew assemble
if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then
echo "Decrypting publishing credentials"
openssl aes-256-cbc -k "$NETFLIX_OSS_SIGNING_FILE_PASSWORD" -in secrets/signing-key.enc -out secrets/signing-key -d
fi



Binary file added secrets/signing-key.enc
Binary file not shown.

0 comments on commit b220107

Please sign in to comment.