Skip to content

Commit 7a7f536

Browse files
committed
Update sbt-sonatype plugin to v.3.7
1 parent 118cf66 commit 7a7f536

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

build.sbt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ lazy val scalaFXExtrasSettings = Seq(
124124
},
125125
autoAPIMappings := true,
126126
manifestSetting,
127-
publishSetting,
127+
publishTo := sonatypePublishToBundle.value,
128128
fork in run := true,
129129
fork in Test := true,
130130
parallelExecution in Test := false,
@@ -152,14 +152,6 @@ lazy val manifestSetting = packageOptions += {
152152
)
153153
}
154154

155-
lazy val publishSetting = publishTo := {
156-
val nexus = "https://oss.sonatype.org/"
157-
if (isSnapshot.value)
158-
Some("snapshots" at nexus + "content/repositories/snapshots")
159-
else
160-
Some("releases" at nexus + "service/local/staging/deploy/maven2")
161-
}
162-
163155
// Metadata needed by Maven Central
164156
// See also http://maven.apache.org/pom.html#Developers
165157
lazy val mavenCentralSettings = Seq(

project/sbt-sonatype.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// [https://github.com/xerial/sbt-sonatype]
2-
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.5")
2+
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.7")
33
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.2")

0 commit comments

Comments
 (0)