diff --git a/.travis.yml b/.travis.yml index d89a3af..cb9c69e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,26 +16,28 @@ before_install: fi install: - - mvn dependency:go-offline + - mvn dependency:go-offline --batch-mode --show-version script: - - mvn test --batch-mode - - mvn clean deploy --batch-mode --show-version -DskipTests -Dgpg.passphrase=$GPG_PASSPHRASE -Psign --settings settings.xml + - mvn test --batch-mode --show-version + - if [[ "$TRAVIS_JDK_VERSION" == "openjdk11" ]]; then + mvn clean deploy --batch-mode --show-version --activate-profiles sign --settings settings.xml -DskipTests -Dgpg.passphrase=$GPG_PASSPHRASE; + fi after_success: - - if [ -n "$TRAVIS_TAG" ]; then - mvn nexus-staging:release --settings settings.xml; + - if [[ -n "$TRAVIS_TAG" && "$TRAVIS_JDK_VERSION" == "openjdk11" ]]; then + mvn nexus-staging:release --batch-mode --show-version --settings settings.xml; fi after_failure: - - if [ -n "$TRAVIS_TAG" ]; then - mvn nexus-staging:drop --settings settings.xml; + - if [[ -n "$TRAVIS_TAG" && "$TRAVIS_JDK_VERSION" == "openjdk11" ]]; then + mvn nexus-staging:drop --batch-mode --show-version --settings settings.xml; fi deploy: provider: releases api_key: - secure: PV+1IXQ0ZHdDMSIZ1kZLbzZN9TyIHcCqMbQhlEm6v4UetKhJPcGtSnEO0gDgso0yRjpEBWqPDZAAl8c8P745YCZ9iMrM6foKNq2AEh6X5rt1SnYLHQUytC81+ghlzVXg/6IBKHACZWObWhTeVaYlN26fEd/CBhB84xp2Aqj3nsgprBLuCjk3UmAX+na8EVXZPWElW7LrhfyFtdhkA79Hk6BrgTVviV6W2DiILeoRJtsu07oRl8nb8z7qT+bvBqdEPO9p9CQpWzWLbVxSSZM5xSOZ0tgyP4HyM8KQzFX8ywRrrUe6YxygHEKlEzEofZ4uSOmY3/OEQyCqsJpPTGX4zBmwqneRKJ4Jpl9/2YfDs2nZ2X9pJfCbPMBhddOcjEzZJhLRPFODOAtXoxPxZBWy5veXexOLdWCSI0cc2EjPwNPGL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