We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81e0d71 commit 8250e09Copy full SHA for 8250e09
build.sbt
@@ -140,14 +140,9 @@ Compile / sourceGenerators += Def.task {
140
}
141
142
// 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
-}
+import xerial.sbt.Sonatype.sonatypeCentralHost
+ThisBuild / sonatypeCredentialHost := sonatypeCentralHost
+publishTo := sonatypePublishToBundle.value
151
152
publishMavenStyle := true
153
0 commit comments