@@ -23,35 +23,31 @@ val buildSettings = Seq[Setting[_]](
2323 val opts = Seq (" -source" , " 1.7" )
2424 if (scala.util.Properties .isJavaAtLeast(" 1.8" )) {
2525 opts ++ Seq (" -Xdoclint:none" )
26- }
27- else {
26+ } else {
2827 opts
2928 }
3029 },
3130 // Release settings
3231 releaseTagName := { (version in ThisBuild ).value },
3332 releaseProcess := Seq [ReleaseStep ](
34- checkSnapshotDependencies,
35- inquireVersions,
36- runClean,
37- runTest,
38- setReleaseVersion,
39- commitReleaseVersion,
40- tagRelease,
41- releaseStepCommand(" publishSigned" ),
42- setNextVersion,
43- commitNextVersion,
44- releaseStepCommand(" sonatypeReleaseAll" ),
45- pushChanges
46- ),
47-
33+ checkSnapshotDependencies,
34+ inquireVersions,
35+ runClean,
36+ runTest,
37+ setReleaseVersion,
38+ commitReleaseVersion,
39+ tagRelease,
40+ releaseStepCommand(" publishSigned" ),
41+ setNextVersion,
42+ commitNextVersion,
43+ releaseStepCommand(" sonatypeReleaseAll" ),
44+ pushChanges
45+ ),
4846 // Find bugs
4947 findbugsReportType := Some (FindbugsReport .FancyHtml ),
5048 findbugsReportPath := Some (crossTarget.value / " findbugs" / " report.html" ),
51-
5249 // Style check config: (sbt-jchekcstyle)
5350 jcheckStyleConfig := " facebook" ,
54-
5551 // Run jcheckstyle both for main and test codes
5652 (compile in Compile ) := ((compile in Compile ) dependsOn (jcheckStyle in Compile )).value,
5753 (compile in Test ) := ((compile in Test ) dependsOn (jcheckStyle in Test )).value
@@ -61,59 +57,61 @@ val junitInterface = "com.novocode" % "junit-interface" % "0.11" % "test"
6157
6258// Project settings
6359lazy val root = Project (id = " msgpack-java" , base = file(" ." ))
64- .settings(
65- buildSettings,
66- // Do not publish the root project
67- publishArtifact := false ,
68- publish := {},
69- publishLocal := {},
70- findbugs := {
71- // do not run findbugs for the root project
72- }
73- ).aggregate(msgpackCore, msgpackJackson)
60+ .settings(
61+ buildSettings,
62+ // Do not publish the root project
63+ publishArtifact := false ,
64+ publish := {},
65+ publishLocal := {},
66+ findbugs := {
67+ // do not run findbugs for the root project
68+ }
69+ )
70+ .aggregate(msgpackCore, msgpackJackson)
7471
7572lazy val msgpackCore = Project (id = " msgpack-core" , base = file(" msgpack-core" ))
76- .enablePlugins(SbtOsgi )
77- .settings(
78- buildSettings,
79- description := " Core library of the MessagePack for Java" ,
80- OsgiKeys .bundleSymbolicName := " org.msgpack.msgpack-core" ,
81- OsgiKeys .exportPackage := Seq (
82- // TODO enumerate used packages automatically
83- " org.msgpack.core" ,
84- " org.msgpack.core.annotations" ,
85- " org.msgpack.core.buffer" ,
86- " org.msgpack.value" ,
87- " org.msgpack.value.impl"
88- ),
89- libraryDependencies ++= Seq (
90- // msgpack-core should have no external dependencies
91- junitInterface,
92- " org.scalatest" %% " scalatest" % " 3.0.3" % " test" ,
93- " org.scalacheck" %% " scalacheck" % " 1.13.5" % " test" ,
94- " org.xerial" %% " xerial-core" % " 3.6.0" % " test" ,
95- " org.msgpack" % " msgpack" % " 0.6.12" % " test" ,
96- " commons-codec" % " commons-codec" % " 1.10" % " test" ,
97- " com.typesafe.akka" %% " akka-actor" % " 2.5.7" % " test"
98- )
99- )
100-
101- lazy val msgpackJackson = Project (id = " msgpack-jackson" , base = file(" msgpack-jackson" ))
102- .enablePlugins(SbtOsgi )
103- .settings(
104- buildSettings,
105- name := " jackson-dataformat-msgpack" ,
106- description := " Jackson extension that adds support for MessagePack" ,
107- OsgiKeys .bundleSymbolicName := " org.msgpack.msgpack-jackson" ,
108- OsgiKeys .exportPackage := Seq (
109- " org.msgpack.jackson" ,
110- " org.msgpack.jackson.dataformat"
111- ),
112- libraryDependencies ++= Seq (
113- " com.fasterxml.jackson.core" % " jackson-databind" % " 2.7.1" ,
114- junitInterface,
115- " org.apache.commons" % " commons-math3" % " 3.6.1" % " test"
116- ),
117- testOptions += Tests .Argument (TestFrameworks .JUnit , " -v" )
118- ).dependsOn(msgpackCore)
73+ .enablePlugins(SbtOsgi )
74+ .settings(
75+ buildSettings,
76+ description := " Core library of the MessagePack for Java" ,
77+ OsgiKeys .bundleSymbolicName := " org.msgpack.msgpack-core" ,
78+ OsgiKeys .exportPackage := Seq (
79+ // TODO enumerate used packages automatically
80+ " org.msgpack.core" ,
81+ " org.msgpack.core.annotations" ,
82+ " org.msgpack.core.buffer" ,
83+ " org.msgpack.value" ,
84+ " org.msgpack.value.impl"
85+ ),
86+ libraryDependencies ++= Seq (
87+ // msgpack-core should have no external dependencies
88+ junitInterface,
89+ " org.scalatest" %% " scalatest" % " 3.0.3" % " test" ,
90+ " org.scalacheck" %% " scalacheck" % " 1.13.5" % " test" ,
91+ " org.xerial" %% " xerial-core" % " 3.6.0" % " test" ,
92+ " org.msgpack" % " msgpack" % " 0.6.12" % " test" ,
93+ " commons-codec" % " commons-codec" % " 1.10" % " test" ,
94+ " com.typesafe.akka" %% " akka-actor" % " 2.5.7" % " test"
95+ )
96+ )
11997
98+ lazy val msgpackJackson =
99+ Project (id = " msgpack-jackson" , base = file(" msgpack-jackson" ))
100+ .enablePlugins(SbtOsgi )
101+ .settings(
102+ buildSettings,
103+ name := " jackson-dataformat-msgpack" ,
104+ description := " Jackson extension that adds support for MessagePack" ,
105+ OsgiKeys .bundleSymbolicName := " org.msgpack.msgpack-jackson" ,
106+ OsgiKeys .exportPackage := Seq (
107+ " org.msgpack.jackson" ,
108+ " org.msgpack.jackson.dataformat"
109+ ),
110+ libraryDependencies ++= Seq (
111+ " com.fasterxml.jackson.core" % " jackson-databind" % " 2.7.1" ,
112+ junitInterface,
113+ " org.apache.commons" % " commons-math3" % " 3.6.1" % " test"
114+ ),
115+ testOptions += Tests .Argument (TestFrameworks .JUnit , " -v" )
116+ )
117+ .dependsOn(msgpackCore)
0 commit comments