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:
Pierre DAL-PRA 2013-11-30 00:29:39 +01:00 committed by Mark Harrah
parent 6a31b6acc4
commit 621f9dc568
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ the same URLs for everyone:
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (version.value.trim.endsWith("SNAPSHOT"))
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
@ -223,7 +223,7 @@ others:
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (version.value.trim.endsWith("SNAPSHOT"))
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")