Skip to content

Commit 8be72a1

Browse files
committed
instructions for releasing to maven central
1 parent 81f8241 commit 8be72a1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README_MAVEN

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
# build with buildr
3+
# sign and upload to nexus staging with mvn
4+
# then finally
5+
# - login to nexus at https://oss.sonatype.org/
6+
# - click 'Staging Repositories' from left menu
7+
# - search for 'uasparser'
8+
# - "Close" repository
9+
# - "Release" repository
10+
11+
buildr test=no clean package
12+
export VERSION="0.6.1"
13+
cp -a pom.xml target/uasparser-$VERSION.pom
14+
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
15+
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
16+
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

0 commit comments

Comments
 (0)