@@ -25,8 +25,6 @@ import sbtrelease.ReleasePlugin._
2525import sbtrelease .ReleaseStateTransformations ._
2626import sbtrelease .ReleaseStep
2727import scala .util .Properties
28- import com .typesafe .sbt .pgp .PgpKeys
29- import xerial .sbt .Sonatype .SonatypeKeys ._
3028
3129object Build extends Build {
3230
@@ -42,21 +40,13 @@ object Build extends Build {
4240 organizationHomepage := Some (new URL (" http://msgpack.org/" )),
4341 description := " MessagePack for Java" ,
4442 scalaVersion in Global := SCALA_VERSION ,
45- ReleaseKeys .publishArtifactsAction := PgpKeys .publishSigned.value,
4643 logBuffered in Test := false ,
4744 // parallelExecution in Test := false,
4845 autoScalaLibrary := false ,
4946 crossPaths := false ,
5047 concurrentRestrictions in Global := Seq (
5148 Tags .limit(Tags .Test , 1 )
5249 ),
53- publishTo := {
54- val nexus = " https://oss.sonatype.org/"
55- if (isSnapshot.value)
56- Some (" snapshots" at nexus + " content/repositories/snapshots" )
57- else
58- Some (" releases" at nexus + " service/local/staging/deploy/maven2" )
59- },
6050 ReleaseKeys .tagName <<= (version in ThisBuild ) map (v => v),
6151 ReleaseKeys .releaseProcess := Seq [ReleaseStep ](
6252 checkSnapshotDependencies,
@@ -66,18 +56,10 @@ object Build extends Build {
6656 setReleaseVersion,
6757 commitReleaseVersion,
6858 tagRelease,
69- ReleaseStep (
70- action = { state =>
71- val extracted = Project extract state
72- extracted.runAggregated(PgpKeys .publishSigned in Global in extracted.get(thisProjectRef), state)
73- }
74- ),
59+ ReleaseStep (action = Command .process(" publishSigned" , _)),
7560 setNextVersion,
7661 commitNextVersion,
77- ReleaseStep { state =>
78- val extracted = Project extract state
79- extracted.runAggregated(sonatypeReleaseAll in Global in extracted.get(thisProjectRef), state)
80- },
62+ ReleaseStep (action = Command .process(" sonatypeReleaseAll" , _)),
8163 pushChanges
8264 ),
8365 parallelExecution in jacoco.Config := false ,
@@ -95,70 +77,24 @@ object Build extends Build {
9577 opts
9678 },
9779 findbugsReportType := Some (ReportType .FancyHtml ),
98- findbugsReportPath := Some (crossTarget.value / " findbugs" / " report.html" ),
99- pomExtra := {
100- <url >http:// msgpack.org/</ url>
101- <licenses >
102- <license >
103- <name >Apache 2 </name >
104- <url >http:// www.apache.org/ licenses/ LICENSE - 2.0 .txt</url >
105- </license >
106- </licenses >
107- <scm >
108- <connection >scm: git: github.com/ msgpack/ msgpack- java.git</connection >
109- <developerConnection >scm: git: git@ github.com: msgpack/ msgpack- java.git</developerConnection >
110- <url >github.com/ msgpack/ msgpack- java.git</url >
111- </scm >
112- <properties >
113- <project .build.sourceEncoding>UTF - 8 </project .build.sourceEncoding>
114- </properties >
115- <developers >
116- <developer >
117- <id >frsyuki</id >
118- <name >Sadayuki Furuhashi </name >
119- <email >frsyuki@ users.sourceforge.jp</email >
120- </developer >
121- <developer >
122- <id >muga</id >
123- <name >Muga Nishizawa </name >
124- <email >muga.nishizawa@ gmail.com</email >
125- </developer >
126- <developer >
127- <id >oza</id >
128- <name >Tsuyoshi Ozawa </name >
129- <url >https:// github.com/ oza</url >
130- </developer >
131- <developer >
132- <id >komamitsu</id >
133- <name >Mitsunori Komatsu </name >
134- <email >komamitsu@ gmail.com</email >
135- </developer >
136- <developer >
137- <id >xerial</id >
138- <name >Taro L . Saito </name >
139- <email >leo@ xerial.org</email >
140- </developer >
141- </developers >
142- }
80+ findbugsReportPath := Some (crossTarget.value / " findbugs" / " report.html" )
14381 )
14482
14583 import Dependencies ._
14684
147-
14885 lazy val root = Project (
14986 id = " msgpack-java" ,
15087 base = file(" ." ),
15188 settings = buildSettings ++ Seq (
152- findbugs := {
153- // do not run findbugs for the root project
154- },
15589 // Do not publish the root project
15690 publishArtifact := false ,
15791 publish := {},
158- publishLocal := {}
92+ publishLocal := {},
93+ findbugs := {
94+ // do not run findbugs for the root project
95+ }
15996 )
160- ) aggregate(msgpackCore, msgpackJackson)
161-
97+ ).aggregate(msgpackCore, msgpackJackson)
16298
16399 lazy val msgpackCore = Project (
164100 id = " msgpack-core" ,
0 commit comments