Publish snapshot version to sonatype

This commit is contained in:
xerial 2017-01-19 18:16:05 -08:00
parent 7dc0ad5401
commit 6e1d9eb9ca
2 changed files with 7 additions and 2 deletions

View File

@ -17,7 +17,7 @@ jdk:
script:
- if [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]; then
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
make native-all && ./sbt test;
make native-all && ./sbt "; test; publish";
else
./sbt test;
fi;

View File

@ -10,6 +10,11 @@ description := "snappy-java: A fast compression/decompression library"
sonatypeProfileName := "org.xerial"
credentials += Credentials("Sonatype Nexus Repository Manager",
"oss.sonatype.org",
sys.env.getOrElse("SONATYPE_USERNAME", ""),
sys.env.getOrElse("SONATYPE_PASSWORD", ""))
pomExtra := {
<url>https://github.com/xerial/snappy-java</url>
<licenses>