Skip to content

Commit 228a6ee

Browse files
committed
Use local Maven and Sonatype snapshots resolvers only for snapshot (development) versions.
1 parent 5c9b4c9 commit 228a6ee

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Diff for: build.sbt

+6-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ scalacOptions := Seq("-unchecked", "-deprecation", "-feature", "-encoding", "utf
1010

1111
sbtPlugin := true
1212

13-
resolvers += Resolver.mavenLocal
14-
15-
resolvers += Resolver.sonatypeRepo("snapshots")
13+
resolvers <++= isSnapshot (
14+
if (_)
15+
Seq(Resolver.mavenLocal, Resolver.sonatypeRepo("snapshots"))
16+
else
17+
Seq()
18+
)
1619

1720
libraryDependencies ++= Seq(
1821
"org.scoverage" %% "scalac-scoverage-plugin" % "1.0.5-SNAPSHOT"

0 commit comments

Comments
 (0)