diff --git a/.travis/publish.sh b/.travis/publish.sh index e2ed5a60..dcbb225e 100755 --- a/.travis/publish.sh +++ b/.travis/publish.sh @@ -5,8 +5,6 @@ tagVer=${tagVer#v} # Remove `v` at beginning. tagVer=${tagVer%%#*} # Remove anything after `#`. publishVersion='set every version := "'$tagVer'"' -java -version - echo "$PGP_PASSPHRASE" | gpg --passphrase-fd 0 --batch --yes --import .travis/secret-key.asc -sbt + "$publishVersion" publishSigned sonatypeBundleRelease \ No newline at end of file +sbt "$publishVersion" "++$TRAVIS_SCALA_VERSION" "; publishSigned; sonatypeBundleRelease" \ No newline at end of file diff --git a/build.sbt b/build.sbt index 34a08b34..8b98f4f2 100644 --- a/build.sbt +++ b/build.sbt @@ -86,6 +86,8 @@ publishMavenStyle := true usePgpKeyHex("9787EE9D6E7FB77E24EAEF0A0F75392379B78332") +sonatypeSessionName := "[sbt-sonatype] ${name.value}-${scalaBinaryVersion.value}-${version.value}" + publishTo := sonatypePublishToBundle.value pomIncludeRepository := { _ => false }