Skip to content

Commit 0ad5b4d

Browse files
committed
Using sbt-sonatype-0.4.0, which simplifies settings
1 parent 63096e9 commit 0ad5b4d

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

project/Build.scala

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ import sbtrelease.ReleaseStateTransformations._
2626
import sbtrelease.ReleaseStep
2727
import scala.util.Properties
2828
import com.typesafe.sbt.pgp.PgpKeys
29-
import xerial.sbt.Sonatype
30-
import Sonatype.SonatypeKeys._
29+
import xerial.sbt.Sonatype.SonatypeKeys._
3130

3231
object Build extends Build {
3332

@@ -94,21 +93,19 @@ object Build extends Build {
9493

9594
import Dependencies._
9695

97-
9896
lazy val root = Project(
9997
id = "msgpack-java",
10098
base = file("."),
10199
settings = buildSettings ++ Seq(
102-
findbugs := {
103-
// do not run findbugs for the root project
104-
},
105100
// Do not publish the root project
106101
publishArtifact := false,
107102
publish := {},
108-
publishLocal := {}
103+
publishLocal := {},
104+
findbugs := {
105+
// do not run findbugs for the root project
106+
}
109107
)
110-
) aggregate(msgpackCore, msgpackJackson)
111-
108+
).aggregate(msgpackCore, msgpackJackson)
112109

113110
lazy val msgpackCore = Project(
114111
id = "msgpack-core",
@@ -117,7 +114,7 @@ object Build extends Build {
117114
description := "Core library of the MessagePack for Java",
118115
libraryDependencies ++= testLib
119116
)
120-
).disablePlugins(Sonatype)
117+
)
121118

122119
lazy val msgpackJackson = Project(
123120
id = "msgpack-jackson",
@@ -128,7 +125,7 @@ object Build extends Build {
128125
libraryDependencies ++= jacksonLib,
129126
testOptions += Tests.Argument(TestFrameworks.JUnit, "-v")
130127
)
131-
).disablePlugins(Sonatype).dependsOn(msgpackCore)
128+
).dependsOn(msgpackCore)
132129

133130
object Dependencies {
134131

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
addSbtPlugin("com.github.gseitz" % "sbt-release" % "0.8.5")
33

4-
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "0.3.3")
4+
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "0.4.0")
55

66
addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8.3")
77

sonatype.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import SonatypeKeys._
1+
Sonatype.sonatypeSettings
22

33
sonatypeProfileName := "org.msgpack"
44

0 commit comments

Comments
 (0)