Skip to content

Commit 8250e09

Browse files
committed
Changes to migrate to the new Sonatype publishing infrastructure
1 parent 81e0d71 commit 8250e09

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

build.sbt

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,9 @@ Compile / sourceGenerators += Def.task {
140140
}
141141

142142
// Sonatype
143-
144-
publishTo := {
145-
val nexus = "https://oss.sonatype.org/"
146-
if (version.value.toString.trim.endsWith("SNAPSHOT"))
147-
Some("snapshots" at nexus + "content/repositories/snapshots")
148-
else
149-
Some("releases" at nexus + "service/local/staging/deploy/maven2")
150-
}
143+
import xerial.sbt.Sonatype.sonatypeCentralHost
144+
ThisBuild / sonatypeCredentialHost := sonatypeCentralHost
145+
publishTo := sonatypePublishToBundle.value
151146

152147
publishMavenStyle := true
153148

0 commit comments

Comments
 (0)