Skip to content

Commit bccc1e1

Browse files
committed
Upgrade to sbt 1.0.4
1 parent d58e00c commit bccc1e1

3 files changed

Lines changed: 22 additions & 27 deletions

File tree

build.sbt

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
import de.johoop.findbugs4sbt.ReportType
21
import ReleaseTransformations._
32

4-
val buildSettings = findbugsSettings ++ jacoco.settings ++ osgiSettings ++ Seq[Setting[_]](
3+
val buildSettings = Seq[Setting[_]](
54
organization := "org.msgpack",
65
organizationName := "MessagePack",
76
organizationHomepage := Some(new URL("http://msgpack.org/")),
87
description := "MessagePack for Java",
9-
scalaVersion := "2.11.11",
8+
scalaVersion := "2.12.4",
109
logBuffered in Test := false,
10+
// msgpack-java should be a pure-java library, so remove Scala specific configurations
1111
autoScalaLibrary := false,
1212
crossPaths := false,
1313
// For performance testing, ensure each test run one-by-one
1414
concurrentRestrictions in Global := Seq(
1515
Tags.limit(Tags.Test, 1)
1616
),
1717
// JVM options for building
18-
scalacOptions ++= Seq("-encoding", "UTF-8", "-deprecation", "-unchecked", "-target:jvm-1.6", "-feature"),
18+
scalacOptions ++= Seq("-encoding", "UTF-8", "-deprecation", "-unchecked", "-target:jvm-1.7", "-feature"),
1919
javaOptions in Test ++= Seq("-ea"),
20-
javacOptions in (Compile, compile) ++= Seq("-encoding", "UTF-8", "-Xlint:unchecked", "-Xlint:deprecation", "-source", "1.6", "-target", "1.6"),
20+
javacOptions in (Compile, compile) ++= Seq("-encoding", "UTF-8", "-Xlint:unchecked", "-Xlint:deprecation", "-source", "1.7", "-target", "1.7"),
2121
// Use lenient validation mode when generating Javadoc (for Java8)
2222
javacOptions in doc := {
23-
val opts = Seq("-source", "1.6")
23+
val opts = Seq("-source", "1.7")
2424
if (scala.util.Properties.isJavaAtLeast("1.8")) {
2525
opts ++ Seq("-Xdoclint:none")
2626
}
@@ -38,18 +38,15 @@ val buildSettings = findbugsSettings ++ jacoco.settings ++ osgiSettings ++ Seq[S
3838
setReleaseVersion,
3939
commitReleaseVersion,
4040
tagRelease,
41-
ReleaseStep(action = Command.process("publishSigned", _)),
41+
releaseStepCommand("publishSigned"),
4242
setNextVersion,
4343
commitNextVersion,
44-
ReleaseStep(action = Command.process("sonatypeReleaseAll", _)),
44+
releaseStepCommand("sonatypeReleaseAll"),
4545
pushChanges
4646
),
4747

48-
// Jacoco code coverage report
49-
parallelExecution in jacoco.Config := false,
50-
5148
// Find bugs
52-
findbugsReportType := Some(ReportType.FancyHtml),
49+
findbugsReportType := Some(FindbugsReport.FancyHtml),
5350
findbugsReportPath := Some(crossTarget.value / "findbugs" / "report.html"),
5451

5552
// Style check config: (sbt-jchekcstyle)
@@ -76,6 +73,7 @@ lazy val root = Project(id = "msgpack-java", base = file("."))
7673
).aggregate(msgpackCore, msgpackJackson)
7774

7875
lazy val msgpackCore = Project(id = "msgpack-core", base = file("msgpack-core"))
76+
.enablePlugins(SbtOsgi)
7977
.settings(
8078
buildSettings,
8179
description := "Core library of the MessagePack for Java",
@@ -96,11 +94,12 @@ lazy val msgpackCore = Project(id = "msgpack-core", base = file("msgpack-core"))
9694
"org.xerial" %% "xerial-core" % "3.6.0" % "test",
9795
"org.msgpack" % "msgpack" % "0.6.12" % "test",
9896
"commons-codec" % "commons-codec" % "1.10" % "test",
99-
"com.typesafe.akka" %% "akka-actor" % "2.3.16" % "test"
97+
"com.typesafe.akka" %% "akka-actor" % "2.5.7" % "test"
10098
)
10199
)
102100

103101
lazy val msgpackJackson = Project(id = "msgpack-jackson", base = file("msgpack-jackson"))
102+
.enablePlugins(SbtOsgi)
104103
.settings(
105104
buildSettings,
106105
name := "jackson-dataformat-msgpack",

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
sbt.version=0.13.15
1+
sbt.version=1.0.4
22

project/plugins.sbt

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
1+
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.6")
2+
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.0")
3+
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.0")
4+
addSbtPlugin("com.github.sbt" % "sbt-findbugs" % "2.0.0")
5+
addSbtPlugin("com.github.sbt" % "sbt-jacoco" % "3.0.3")
6+
addSbtPlugin("org.xerial.sbt" % "sbt-jcheckstyle" % "0.2.0")
7+
addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % "0.9.2")
8+
addSbtPlugin("io.get-coursier" % "sbt-coursier" % "1.0.0-RC12")
9+
addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "1.3.0")
110

2-
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.0")
3-
4-
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "1.1")
5-
6-
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")
7-
8-
addSbtPlugin("de.johoop" % "findbugs4sbt" % "1.3.0")
9-
10-
addSbtPlugin("de.johoop" % "jacoco4sbt" % "2.1.6")
11-
12-
addSbtPlugin("org.xerial.sbt" % "sbt-jcheckstyle" % "0.1.4")
13-
14-
addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % "0.7.0")
1511

1612
scalacOptions ++= Seq("-deprecation", "-feature")

0 commit comments

Comments
 (0)