Skip to content

Commit 0a1ef16

Browse files
committed
Publish snapshots to SBT Plugin Snapshots repository.
1 parent 228a6ee commit 0a1ef16

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Diff for: build.sbt

+6-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ libraryDependencies ++= Seq(
2121
"org.scoverage" %% "scalac-scoverage-plugin" % "1.0.5-SNAPSHOT"
2222
)
2323

24-
publishTo := Some(Resolver.url("sbt-plugin-releases",
25-
new URL("http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/"))(Resolver.ivyStylePatterns))
24+
publishTo <<= isSnapshot {
25+
if (_)
26+
Some(Resolver.sbtPluginRepo("snapshots"))
27+
else
28+
Some(Resolver.sbtPluginRepo("releases"))
29+
}
2630

2731
publishMavenStyle := false
2832

0 commit comments

Comments
 (0)