diff options
author | Diego <diegolparra@gmail.com> | 2018-03-18 16:57:58 -0300 |
---|---|---|
committer | Diego <diegolparra@gmail.com> | 2018-03-18 16:57:58 -0300 |
commit | b8fbb33741cee85fa10ebc23a4d784a690c84da9 (patch) | |
tree | 90b85881542d72f5dcfbfdcba777eeb8c8cc918c | |
parent | f1504857a91e89d17fd4c4801d7be3580bf60e28 (diff) | |
download | Kamon-b8fbb33741cee85fa10ebc23a4d784a690c84da9.tar.gz Kamon-b8fbb33741cee85fa10ebc23a4d784a690c84da9.tar.bz2 Kamon-b8fbb33741cee85fa10ebc23a4d784a690c84da9.zip |
* Introduce some scalac params in order to improve the emited bytecode
-rw-r--r-- | build.sbt | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -20,11 +20,23 @@ lazy val kamon = (project in file(".")) .aggregate(core, testkit, coreTests) val commonSettings = Seq( - scalaVersion := "2.11.8", + scalaVersion := "2.12.4", javacOptions += "-XDignore.symbol.file", resolvers += Resolver.mavenLocal, - crossScalaVersions := Seq("2.12.2", "2.11.8", "2.10.6"), - concurrentRestrictions in Global += Tags.limit(Tags.Test, 1) + crossScalaVersions := Seq("2.12.4", "2.11.8", "2.10.6"), + concurrentRestrictions in Global += Tags.limit(Tags.Test, 1), + scalacOptions ++= Seq( + "-deprecation", + "-encoding", "UTF-8", + "-feature", + "-Xfuture", + "-language:implicitConversions", "-language:higherKinds", "-language:existentials", "-language:postfixOps", + "-unchecked" + ) ++ (CrossVersion.partialVersion(scalaVersion.value) match { + case Some((2,10)) => Seq("-Yno-generic-signatures", "-target:jvm-1.7") + case Some((2,11)) => Seq("-Ybackend:GenBCode","-Ydelambdafy:method","-target:jvm-1.8") + case _ => Seq("-opt:l:method") + }) ) lazy val core = (project in file("kamon-core")) |