Skip to content

Commit c5705fc

Browse files
authored
Change to use central (#411)
1 parent 2cd125b commit c5705fc

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

build.sbt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import scalariform.formatter.preferences._
22
import org.typelevel.scalacoptions.ScalacOptions
3+
import xerial.sbt.Sonatype.sonatypeCentralHost
34

45
lazy val noPublish = Seq(
56
publish := {},
@@ -45,11 +46,8 @@ lazy val recryptSettings = Seq(
4546
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
4647
isSnapshot := version.value endsWith "SNAPSHOT",
4748
homepage := Some(url("http://github.com/ironcorelabs/recrypt")),
48-
publishTo := Some(
49-
if (isSnapshot.value)
50-
Opts.resolver.sonatypeSnapshots
51-
else
52-
Opts.resolver.sonatypeStaging),
49+
sonatypeCredentialHost := sonatypeCentralHost,
50+
publishTo := sonatypePublishToBundle.value,
5351
publishMavenStyle := true,
5452
Test / publishArtifact := false,
5553
pomIncludeRepository := { _ => false },

0 commit comments

Comments
 (0)