mirror of https://github.com/sbt/sbt.git
Documentation : use isSnapshot setting instead of "version.value.trim.endsWith("SNAPSHOT")"
Since SBT provides the `isSnapshot` setting to check whether the current version is a snapshot version or not, I thought it could be nice to use it here instead of reimplementing it :)
This commit is contained in:
parent
6a31b6acc4
commit
621f9dc568
|
|
@ -33,7 +33,7 @@ the same URLs for everyone:
|
||||||
|
|
||||||
publishTo := {
|
publishTo := {
|
||||||
val nexus = "https://oss.sonatype.org/"
|
val nexus = "https://oss.sonatype.org/"
|
||||||
if (version.value.trim.endsWith("SNAPSHOT"))
|
if (isSnapshot.value)
|
||||||
Some("snapshots" at nexus + "content/repositories/snapshots")
|
Some("snapshots" at nexus + "content/repositories/snapshots")
|
||||||
else
|
else
|
||||||
Some("releases" at nexus + "service/local/staging/deploy/maven2")
|
Some("releases" at nexus + "service/local/staging/deploy/maven2")
|
||||||
|
|
@ -223,7 +223,7 @@ others:
|
||||||
|
|
||||||
publishTo := {
|
publishTo := {
|
||||||
val nexus = "https://oss.sonatype.org/"
|
val nexus = "https://oss.sonatype.org/"
|
||||||
if (version.value.trim.endsWith("SNAPSHOT"))
|
if (isSnapshot.value)
|
||||||
Some("snapshots" at nexus + "content/repositories/snapshots")
|
Some("snapshots" at nexus + "content/repositories/snapshots")
|
||||||
else
|
else
|
||||||
Some("releases" at nexus + "service/local/staging/deploy/maven2")
|
Some("releases" at nexus + "service/local/staging/deploy/maven2")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue