diff --git a/src/sphinx/Community/Using-Sonatype.rst b/src/sphinx/Community/Using-Sonatype.rst index 35140922f..77560258d 100644 --- a/src/sphinx/Community/Using-Sonatype.rst +++ b/src/sphinx/Community/Using-Sonatype.rst @@ -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")