Skip to content

Commit 9f23d28

Browse files
committed
Fix build settings
1 parent 4f87db3 commit 9f23d28

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

project/Build.scala

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,18 @@
1818
import de.johoop.findbugs4sbt.ReportType
1919
import sbt._
2020
import Keys._
21-
import xerial.sbt.Sonatype._
2221
import de.johoop.findbugs4sbt.FindBugs._
2322
import de.johoop.jacoco4sbt._
2423
import JacocoPlugin._
2524
import sbtrelease.ReleasePlugin._
25+
import xerial.sbt.Sonatype._
2626

2727
object Build extends Build {
2828

2929
val SCALA_VERSION = "2.11.1"
3030

3131
lazy val buildSettings = Defaults.coreDefaultSettings ++
32+
sonatypeSettings ++
3233
releaseSettings ++
3334
findbugsSettings ++
3435
jacoco.settings ++
@@ -52,6 +53,8 @@ object Build extends Build {
5253
scalacOptions ++= Seq("-encoding", "UTF-8", "-deprecation", "-unchecked", "-target:jvm-1.6", "-feature"),
5354
javaOptions in Test ++= Seq("-ea"),
5455
javacOptions in (Compile, compile) ++= Seq("-encoding", "UTF-8", "-Xlint:unchecked", "-Xlint:deprecation", "-source", "1.6", "-target", "1.6"),
56+
findbugsReportType := Some(ReportType.FancyHtml),
57+
findbugsReportPath := Some(crossTarget.value / "findbugs" / "report.html"),
5558
pomExtra := {
5659
<url>http://msgpack.org/</url>
5760
<licenses>
@@ -66,7 +69,6 @@ object Build extends Build {
6669
<url>github.com/msgpack/msgpack-java.git</url>
6770
</scm>
6871
<properties>
69-
<scala.version>{SCALA_VERSION}</scala.version>
7072
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
7173
</properties>
7274
<developers>
@@ -96,9 +98,7 @@ object Build extends Build {
9698
<email>leo@xerial.org</email>
9799
</developer>
98100
</developers>
99-
},
100-
findbugsReportType := Some(ReportType.FancyHtml),
101-
findbugsReportPath := Some(crossTarget.value / "findbugs" / "report.html")
101+
}
102102
)
103103

104104
import Dependencies._
@@ -112,15 +112,17 @@ object Build extends Build {
112112
// do not run findbugs for the root project
113113
},
114114
// Do not publish the root project
115-
publishArtifact := false
115+
publishArtifact := false,
116+
publish := {},
117+
publishLocal := {}
116118
)
117119
) aggregate(msgpackCore)
118120

119121

120122
lazy val msgpackCore = Project(
121123
id = "msgpack-core",
122124
base = file("msgpack-core"),
123-
settings = buildSettings ++ sonatypeSettings ++ Seq(
125+
settings = buildSettings ++ Seq(
124126
description := "Core library of the MessagePack for Java",
125127
libraryDependencies ++= testLib
126128
)

0 commit comments

Comments
 (0)