From 6e1d9eb9cac74e3a03161c8df7b3eac8fc6eb5ea Mon Sep 17 00:00:00 2001 From: xerial Date: Thu, 19 Jan 2017 18:16:05 -0800 Subject: [PATCH] Publish snapshot version to sonatype --- .travis.yml | 2 +- build.sbt | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index ac61473..401d39f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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; diff --git a/build.sbt b/build.sbt index 68a4022..b87b282 100644 --- a/build.sbt +++ b/build.sbt @@ -8,7 +8,12 @@ organizationName := "xerial.org" description := "snappy-java: A fast compression/decompression library" -sonatypeProfileName := "org.xerial" +sonatypeProfileName := "org.xerial" + +credentials += Credentials("Sonatype Nexus Repository Manager", + "oss.sonatype.org", + sys.env.getOrElse("SONATYPE_USERNAME", ""), + sys.env.getOrElse("SONATYPE_PASSWORD", "")) pomExtra := { https://github.com/xerial/snappy-java