1- import de .johoop .findbugs4sbt .ReportType
21import 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
7875lazy 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
103101lazy val msgpackJackson = Project (id = " msgpack-jackson" , base = file(" msgpack-jackson" ))
102+ .enablePlugins(SbtOsgi )
104103 .settings(
105104 buildSettings,
106105 name := " jackson-dataformat-msgpack" ,
0 commit comments