Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 1.08 KB

README_MAVEN.md

File metadata and controls

19 lines (16 loc) · 1.08 KB
  1. Increment version number in pom.xml and buildfile
  2. Build, sign and upload to nexus staging (commands below)
  3. Login to nexus at https://oss.sonatype.org/
  4. Click 'Staging Repositories' from left menu
  5. Search for 'uasparser'
  6. "Close" repository
  7. "Release" repository
# REQUIRES JDK 1.7

buildr test=no clean package
export VERSION="0.6.1"
cp -a pom.xml target/uasparser-$VERSION.pom
mvn gpg:sign-and-deploy-file -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging -DpomFile=target/uasparser-$VERSION.pom -Dfile=target/uasparser-$VERSION.jar
mvn gpg:sign-and-deploy-file -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging -DpomFile=target/uasparser-$VERSION.pom -Dfile=target/uasparser-$VERSION-sources.jar -Dclassifier=sources
mvn gpg:sign-and-deploy-file -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging -DpomFile=target/uasparser-$VERSION.pom -Dfile=target/uasparser-$VERSION-javadoc.jar -Dclassifier=javadoc