From 9bda820bc5375caba8d689aef730b98c7c695bbe Mon Sep 17 00:00:00 2001 From: Stephen Colebourne Date: Thu, 23 Mar 2017 13:32:47 +0000 Subject: [PATCH] Update travis and pom.xml for releases --- .travis.yml | 20 +++------------ README.md | 9 +++++++ pom.xml | 73 ++++++++++++++++++++++++++++++++++++++--------------- 3 files changed, 65 insertions(+), 37 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4be082052..dbda0058f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,23 +19,9 @@ install: - mvn --version script: - mvn install -e -B -# deploy -before_deploy: - - travis_wait 40 mvn site-deploy -e -B --settings .github/maven-settings.xml - - export DIST_FILE1=$(ls target/joda-time-*-dist.tar.gz) - - export DIST_FILE2=$(ls target/joda-time-*-dist.zip) -deploy: - provider: releases - api_key: - secure: S9aAxkk3ICWqC24GDZK+L6n/xK9OWh4KRWiiSJ4wN4gVoshxLWOvB6aDLMTlQwd5FffzG7RT9aqeYBOihWZWupW4/0xP00yW5WE7dKpURDB0AuOllo1Em1IBL2AlEmhepOss1tn/A/uSApe134Hg8qryOpffAYNWzgzVlYFEM+0= - file: - - "${DIST_FILE1}" - - "${DIST_FILE2}" - skip_cleanup: true - on: - jdk: "oraclejdk7" - tags: true - condition: "$TRAVIS_TAG =~ ^v.*$" +after_success: + - if [[ $TRAVIS_TAG =~ ^v.*$ ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]; then travis_wait 40 mvn site-deploy -e -B --settings .github/maven-settings.xml; fi +# secure keys for GITHUB_TOKEN env: global: secure: UK9A4eHPOP6XkYbST1kpv3gVEZTBqp79eCF0nqpXejbXihY58MNVZ0aGt8IM/ZThO/UoK+AxWjaSLljE2Neo4ehxvRHsRG0bIhAoCBUjP6f6vuMYTZlRNb9W+NM3RjXvrQGnCM3PTckWaFQ6i5Ny4e1GuETSdh96Yk7WNn6DMJM= diff --git a/README.md b/README.md index ea0728fb2..cdbfd0c6b 100644 --- a/README.md +++ b/README.md @@ -83,3 +83,12 @@ Please use GitHub issues and Pull Requests for support. ### History Issue tracking and active development is at GitHub. Historically, the project was at [Sourceforge](https://sourceforge.net/projects/joda-time/). + + +### Release process + +* Update version (pom.xml, README.md, index.md, MANIFEST.MF, changes.xml) +* Commit and push +* `mvn clean deploy -Doss.repo -Dgpg.passphrase=""` +* Release project in [Nexus](https://oss.sonatype.org) +* Website will be built and released by Travis diff --git a/pom.xml b/pom.xml index 2a0e25f7a..97fd6ae30 100644 --- a/pom.xml +++ b/pom.xml @@ -477,26 +477,6 @@ - - org.apache.maven.plugins - maven-assembly-plugin - - false - - src/main/assembly/dist.xml - - gnu - - - - make-assembly - deploy - - single - - - - org.apache.maven.plugins maven-site-plugin @@ -816,6 +796,7 @@ + org.apache.maven.plugins maven-toolchains-plugin @@ -836,6 +817,7 @@ + org.apache.maven.plugins maven-gpg-plugin @@ -849,6 +831,57 @@ + + + org.apache.maven.plugins + maven-assembly-plugin + + false + + src/main/assembly/dist.xml + + gnu + + + + make-assembly + install + + single + + + + + + + de.jutzig + github-release-plugin + 1.1.1 + + Release v${project.version} + See the [change notes](http://www.joda.org/joda-time/changes-report.html) for more information. + v${project.version} + true + + + ${project.build.directory} + + ${project.artifactId}*-dist.tar.gz + ${project.artifactId}*-dist.zip + + + + + + + github-releases + deploy + + release + + + +