Skip to content

Commit

Permalink
default url
Browse files Browse the repository at this point in the history
  • Loading branch information
cfmcgrady committed Dec 4, 2023
1 parent b229894 commit ee37a5e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions project/CelebornBuild.scala
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,13 @@ object CelebornCommonSettings {
sys.env.getOrElse("SONATYPE_PASSWORD", "")
),
publishTo := {
// val nexus = "https://oss.sonatype.org/"
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value) {
Some(("snapshots" at sys.env.getOrElse("SONATYPE_SNAPSHOTS_URL", "")).withAllowInsecureProtocol(true))
val snapshotUrl = sys.env.getOrElse("SONATYPE_SNAPSHOTS_URL", nexus + "content/repositories/snapshots")
Some(("snapshots" at snapshotUrl).withAllowInsecureProtocol(true))
} else {
Some(("releases" at sys.env.getOrElse("SONATYPE_RELEASES_URL", "")).withAllowInsecureProtocol(true))
val releaseUrl = sys.env.getOrElse("SONATYPE_RELEASES_URL", nexus + "service/local/staging/deploy/maven2")
Some(("releases" at releaseUrl).withAllowInsecureProtocol(true))
}
},
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0")),
Expand Down

0 comments on commit ee37a5e

Please sign in to comment.