diff options
author | Jakob Odersky <jakob@driver.xyz> | 2017-10-05 13:30:51 -0700 |
---|---|---|
committer | Jakob Odersky <jakob@driver.xyz> | 2017-10-05 13:30:51 -0700 |
commit | 79502e93b4a93a1edf00ad34d7be6b9b19f9105d (patch) | |
tree | 6c95751ea9ff813887e44eea6cfbf098acca65ff /publish.sbt | |
parent | 0bbbef2eae7337173987144ee2b2fefb0da53606 (diff) | |
download | tracing-79502e93b4a93a1edf00ad34d7be6b9b19f9105d.tar.gz tracing-79502e93b4a93a1edf00ad34d7be6b9b19f9105d.tar.bz2 tracing-79502e93b4a93a1edf00ad34d7be6b9b19f9105d.zip |
Set up automatic versioning
Diffstat (limited to 'publish.sbt')
-rw-r--r-- | publish.sbt | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/publish.sbt b/publish.sbt index 31c76f1..ac75e3d 100644 --- a/publish.sbt +++ b/publish.sbt @@ -3,10 +3,12 @@ licenses in ThisBuild := Seq( ("Apache 2.0", url("https://www.apache.org/licenses/LICENSE-2.0"))) homepage in ThisBuild := Some(url("https://github.com/drivergroup/tracing")) publishMavenStyle in ThisBuild := true -publishTo in ThisBuild := { - val nexus = "https://oss.sonatype.org/" - Some("releases" at nexus + "service/local/staging/deploy/maven2") -} +publishTo := Some( + if (isSnapshot.value) + Opts.resolver.sonatypeSnapshots + else + Opts.resolver.sonatypeStaging +) scmInfo := Some( ScmInfo( |