Skip to content

Commit 3a1a3cd

Browse files
committed
Move publishTo to build-setting
This is to fix sbt-plugin publishing to Maven Central. Maybe the apiSettings should move there too. Maybe mimaSettings should move there too. But then I'd have to check that that scope is actually read, & I'd have to check that projects that the opt out of mima still opt out. For another day.
1 parent 2f18d3e commit 3a1a3cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ inThisBuild(Seq(
1414
scalacOptions := Seq("-feature", "-deprecation", "-Xlint"),
1515
useCoursier := false, // b/c otherwise IntegrationTest/test uses scala-library-2.12 always
1616
resolvers ++= (if (isStaging) List(stagingResolver) else Nil),
17+
publishTo := Some(if (isSnapshot.value) Opts.resolver.sonatypeSnapshots else Opts.resolver.sonatypeStaging),
1718
))
1819

1920
// Useful to self-test releases
@@ -50,7 +51,6 @@ val core = project.settings(
5051
}
5152
.toMap
5253
},
53-
publishTo := Some(if (isSnapshot.value) Opts.resolver.sonatypeSnapshots else Opts.resolver.sonatypeStaging),
5454

5555
)
5656

0 commit comments

Comments
 (0)