Skip to content

Commit fa738cf

Browse files
committed
Updated snapshot/publish repos
1 parent 0a1ef16 commit fa738cf

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Diff for: build.sbt

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

1111
sbtPlugin := true
1212

13-
resolvers <++= isSnapshot (
13+
resolvers <++= isSnapshot(
1414
if (_)
1515
Seq(Resolver.mavenLocal, Resolver.sonatypeRepo("snapshots"))
1616
else
@@ -21,11 +21,12 @@ libraryDependencies ++= Seq(
2121
"org.scoverage" %% "scalac-scoverage-plugin" % "1.0.5-SNAPSHOT"
2222
)
2323

24-
publishTo <<= isSnapshot {
25-
if (_)
24+
publishTo := {
25+
if (isSnapshot.value) {
2626
Some(Resolver.sbtPluginRepo("snapshots"))
27-
else
27+
} else {
2828
Some(Resolver.sbtPluginRepo("releases"))
29+
}
2930
}
3031

3132
publishMavenStyle := false
@@ -36,6 +37,7 @@ licenses +=("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0.html")
3637

3738
ScriptedPlugin.scriptedSettings
3839

39-
scriptedLaunchOpts := { scriptedLaunchOpts.value ++
40-
Seq("-Xmx1024M", "-XX:MaxPermSize=256M", "-Dplugin.version=" + version.value)
40+
scriptedLaunchOpts := {
41+
scriptedLaunchOpts.value ++
42+
Seq("-Xmx1024M", "-XX:MaxPermSize=256M", "-Dplugin.version=" + version.value)
4143
}

0 commit comments

Comments
 (0)