Skip to content

Commit

Permalink
Also deploys Scala 2.13 on snapshot and release (#89)
Browse files Browse the repository at this point in the history
The snapshot part will verify on merge to master. The syntax for deploy
a release should also work if master does. The only thing that will wait
for a release to find out is if the maven central sync works with two
versions of scala queued. It probably will work.
  • Loading branch information
adriancole authored Sep 2, 2020
1 parent 469883c commit 23768fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions travis/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,12 @@ if is_pull_request; then
elif is_travis_branch_master; then
./mvnw --batch-mode -s ./.settings.xml -Prelease -nsu -DskipTests deploy

# Do this again for Scala 2.13 as BinTray allows re-uploading to the same version
find . -type f -name pom.xml -exec sed -i 's/_2.12/_2.13/g' {} \;
./mvnw --batch-mode -s ./.settings.xml -Prelease -nsu -DskipTests clean deploy

# If the deployment succeeded, sync it to Maven Central. Note: this needs to be done once per project, not module, hence -N
# This should sync both scala versions _2.12 and _2.13
if is_release_commit; then
./mvnw --batch-mode -s ./.settings.xml -nsu -N io.zipkin.centralsync-maven-plugin:centralsync-maven-plugin:sync
fi
Expand Down

0 comments on commit 23768fc

Please sign in to comment.