aboutsummaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
authorvlad <vlad@drivergrp.com>2016-07-20 09:38:13 -0400
committervlad <vlad@drivergrp.com>2016-07-20 09:38:13 -0400
commit001e52f41f6f9fe6740fdd33461f21bb70c4110d (patch)
tree939c10b81510927f713ee181bfddf44e94d50e8a /build.sbt
parent83d5380f70ad0400a6eac52f48736250e49e86f7 (diff)
downloaddriver-core-001e52f41f6f9fe6740fdd33461f21bb70c4110d.tar.gz
driver-core-001e52f41f6f9fe6740fdd33461f21bb70c4110d.tar.bz2
driver-core-001e52f41f6f9fe6740fdd33461f21bb70c4110d.zip
Issue#1 Moving from Build.scala to build.sbt
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt48
1 files changed, 48 insertions, 0 deletions
diff --git a/build.sbt b/build.sbt
new file mode 100644
index 0000000..3d2bf16
--- /dev/null
+++ b/build.sbt
@@ -0,0 +1,48 @@
+import sbt._
+import Keys._
+
+
+lazy val wartRemoverSettings = Seq(
+ wartremoverErrors in (Compile, compile) ++= Warts.allBut(
+ Wart.AsInstanceOf, Wart.Nothing, Wart.Option2Iterable, Wart.ExplicitImplicitTypes,
+ Wart.Overloading, Wart.DefaultArguments, Wart.ToString, Wart.Any, Wart.Throw)
+)
+
+lazy val compileScalastyle = taskKey[Unit]("compileScalastyle")
+
+lazy val buildSettings = Defaults.coreDefaultSettings ++ Seq (
+ organization := "com.drivergrp",
+ name := "core",
+ version := "0.0.1",
+ scalaVersion := "2.11.8",
+ scalacOptions := Seq("-unchecked", "-deprecation", "-feature", "-Xlint", "-encoding", "utf8",
+ "-language:higherKinds", "-language:implicitConversions", "-language:postfixOps",
+ "-Ywarn-infer-any", "-Ywarn-unused", "-Ywarn-unused-import"),
+ scalafmtConfig := Some(file(".scalafmt")),
+ fork in run := true,
+ compileScalastyle := (scalastyle in Compile).toTask("").value,
+ (compile in Compile) <<= ((compile in Compile) dependsOn compileScalastyle)
+) ++ wartRemoverSettings ++ reformatOnCompileSettings
+
+lazy val akkaHttpV = "2.4.8"
+
+lazy val core = (project in file(".")).
+ settings(buildSettings: _*).
+ settings(
+ libraryDependencies ++= Seq(
+ "com.typesafe.akka" %% "akka-http-core" % akkaHttpV,
+ "com.typesafe.akka" %% "akka-http-experimental" % akkaHttpV,
+ "com.typesafe.akka" %% "akka-http-jackson-experimental" % akkaHttpV,
+ "com.typesafe.akka" %% "akka-http-spray-json-experimental" % akkaHttpV,
+ "com.typesafe.akka" %% "akka-http-testkit" % akkaHttpV,
+ "org.scalatest" % "scalatest_2.11" % "2.2.1" % "test",
+ "org.mockito" % "mockito-core" % "1.9.5" % "test",
+ "com.typesafe.slick" %% "slick" % "3.1.1",
+ "com.typesafe" % "config" % "1.2.1",
+ "com.typesafe.scala-logging" %% "scala-logging" % "3.1.0",
+ "ch.qos.logback" % "logback-classic" % "1.1.3",
+ "org.slf4j" % "slf4j-nop" % "1.6.4",
+ "org.scalaz" %% "scalaz-core" % "7.2.4",
+ "com.github.swagger-akka-http" %% "swagger-akka-http" % "0.7.1",
+ "com.lihaoyi" %% "acyclic" % "0.1.4" % "provided"
+ ))