Skip to content

Commit 7a0cac5

Browse files
committed
Upgrade SBT version to latest 0.13.13. Don't use deprecated <<= operator.
1 parent 5691281 commit 7a0cac5

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

build.sbt

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,11 @@ val appSettings = Seq(
2020
parallelExecution in Test := false,
2121
scalacOptions := Seq("-unchecked", "-deprecation", "-feature", "-encoding", "utf8"),
2222
concurrentRestrictions in Global += Tags.limit(Tags.Test, 1),
23-
publishTo <<= version {
24-
(v: String) =>
25-
val nexus = "https://oss.sonatype.org/"
26-
if (v.trim.endsWith("-SNAPSHOT"))
27-
Some(Resolver.sonatypeRepo("snapshots"))
28-
else
29-
Some("releases" at nexus + "service/local/staging/deploy/maven2")
23+
publishTo := {
24+
if (isSnapshot.value)
25+
Some("snapshots" at "https://oss.sonatype.org/content/repositories/snapshots")
26+
else
27+
Some("releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2")
3028
},
3129
pomExtra := {
3230
<url>https://github.com/scoverage/scalac-scoverage-plugin</url>

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=0.13.12
1+
sbt.version=0.13.13

0 commit comments

Comments
 (0)