Skip to content

Commit 8cf5c7a

Browse files
committed
upgrade to sbt 1.1.6 and latest plugins
1 parent 665a5fd commit 8cf5c7a

File tree

6 files changed

+16
-33
lines changed

6 files changed

+16
-33
lines changed

.travis.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@ sudo: false
44
cache:
55
directories:
66
- $HOME/.ivy2/cache
7-
# Cache the sbt launcher, currently the Travis VM preinstalls 0.13.5
8-
- $HOME/.sbt/launchers/0.13.7
9-
# Cache scala, currently the Travis VM preinstalls 2.11.2 & 2.10.4
10-
#- $HOME/.sbt/boot/scala-$TRAVIS_SCALA_VERSION
11-
12-
# Updates regarding Travis VM preinstalls:
13-
# https://github.com/travis-ci/travis-cookbooks/blob/master/changes.md
7+
- $HOME/.sbt/boot
148

159
language: scala
1610

build.sbt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ val sonatype = new PublishToSonatype {
2222
}
2323

2424
lazy val commonSettings: Seq[Setting[_]] = Def.settings(
25-
unpublished,
26-
javaVersionPrefix in javaVersionCheck := None
25+
unpublished
2726
)
2827

2928
lazy val root = (project in file("."))

config/build.sbt

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
import de.johoop.findbugs4sbt.FindBugs._
2-
import de.johoop.findbugs4sbt.{ Effort, ReportType }
3-
import de.johoop.jacoco4sbt.JacocoPlugin.jacoco
41
import com.typesafe.sbt.SbtScalariform
52
import com.typesafe.sbt.SbtScalariform.ScalariformKeys
63
import scalariform.formatter.preferences._
74

8-
SbtScalariform.scalariformSettings
9-
105
val formatPrefs = FormattingPreferences()
116
.setPreference(IndentSpaces, 4)
127

@@ -64,15 +59,12 @@ checkstyle in Compile := {
6459
// add checkstyle as a dependency of doc
6560
doc in Compile := ((doc in Compile).dependsOn(checkstyle in Compile)).value
6661

67-
findbugsSettings
68-
findbugsReportType := Some(ReportType.Html)
62+
findbugsReportType := Some(FindbugsReport.Html)
6963
findbugsReportPath := Some(crossTarget.value / "findbugs.html")
70-
findbugsEffort := Effort.Maximum
64+
findbugsEffort := FindbugsEffort.Maximum
7165
findbugsMaxMemory := 2000
7266

73-
jacoco.settings
74-
75-
javacOptions in (Compile, compile) ++= Seq("-source", "1.6", "-target", "1.8",
67+
javacOptions in (Compile, compile) ++= Seq("-source", "1.8", "-target", "1.8",
7668
"-g", "-Xlint:unchecked")
7769

7870
// because we test some global state such as singleton caches,
@@ -86,5 +78,3 @@ javadocSourceBaseUrl := {
8678
for (gitHead <- com.typesafe.sbt.SbtGit.GitKeys.gitHeadCommit.value)
8779
yield s"https://github.com/lightbend/config/blob/$gitHead/config/src/main/java"
8880
}
89-
90-
javaVersionPrefix in javaVersionCheck := Some("1.8")

project/build.properties

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

project/linksource.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,16 @@ object LinkSourcePlugin extends AutoPlugin {
2626

2727
val dir = (target in doc in Compile).value
2828

29-
javadocSourceBaseUrl.value.foreach { url =>
30-
rewriteSourceLinks(dir, url, streams.value.log)
29+
(javadocSourceBaseUrl.value, streams.value) match {
30+
case (Some(url), streamz) =>
31+
rewriteSourceLinks(dir, url, streamz.log)
32+
case _ =>
3133
}
3234

3335
result
3436
}
3537
)
3638

37-
3839
private def rewriteSourceLinks(dir: File, sourceBaseUrl: String, log: Logger): Unit = {
3940
// Convert <a href="../../../src-html/com/typesafe/config/Config.html#line.165"> to
4041
// "https://github.com/lightbend/config/blob/v1.2.1/config/src/main/java/com/typesafe/config/Config.java#L165"

project/plugins.sbt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
addSbtPlugin("de.johoop" % "findbugs4sbt" % "1.4.0")
2-
addSbtPlugin("de.johoop" % "jacoco4sbt" % "2.1.6")
3-
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")
1+
addSbtPlugin("com.github.sbt" % "sbt-findbugs" % "2.0.0")
2+
addSbtPlugin("com.github.sbt" % "sbt-jacoco" % "3.1.0")
3+
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.1")
44
addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % "0.9.3")
5-
addSbtPlugin("com.typesafe.sbt" % "sbt-scalariform" % "1.2.1")
5+
addSbtPlugin("org.scalariform" % "sbt-scalariform" % "1.8.2")
66

7-
addSbtPlugin("com.etsy" % "sbt-checkstyle-plugin" % "3.0.0")
7+
addSbtPlugin("com.etsy" % "sbt-checkstyle-plugin" % "3.1.1")
88

9-
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "0.8.5")
10-
addSbtPlugin("com.typesafe.sbt" % "sbt-javaversioncheck" % "0.1.0")
9+
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "1.0.0")

0 commit comments

Comments
 (0)