Skip to content

Commit da1d8e3

Browse files
committed
msgpack#119: Fix build settings. Enable assertions in testing. Show deprecation warnings in the build scripts
1 parent 02304cf commit da1d8e3

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

project/Build.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ object Build extends Build {
2828

2929
val SCALA_VERSION = "2.11.1"
3030

31-
lazy val buildSettings = Defaults.defaultSettings ++
31+
lazy val buildSettings = Defaults.coreDefaultSettings ++
3232
releaseSettings ++
3333
findbugsSettings ++
3434
jacoco.settings ++
@@ -50,6 +50,7 @@ object Build extends Build {
5050
incOptions := incOptions.value.withNameHashing(true),
5151
//resolvers += Resolver.mavenLocal,
5252
scalacOptions ++= Seq("-encoding", "UTF-8", "-deprecation", "-unchecked", "-target:jvm-1.6", "-feature"),
53+
javaOptions in Test ++= Seq("-ea"),
5354
javacOptions in (Compile, compile) ++= Seq("-encoding", "UTF-8", "-Xlint:unchecked", "-Xlint:deprecation", "-source", "1.6", "-target", "1.6"),
5455
pomExtra := {
5556
<url>http://msgpack.org/</url>

project/plugins.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ addSbtPlugin("de.johoop" % "findbugs4sbt" % "1.3.0")
1111

1212
addSbtPlugin("de.johoop" % "jacoco4sbt" % "2.1.5")
1313

14+
scalacOptions ++= Seq("-deprecation", "-feature")

0 commit comments

Comments
 (0)