|
1 |
| -val playVersion = "2.5.7" |
| 1 | +version := "0.1.0" |
| 2 | + |
| 3 | +name := "zabbicook" |
| 4 | + |
| 5 | +scalaVersion := "2.11.8" |
| 6 | + |
| 7 | +scalacOptions ++= Seq( |
| 8 | + "-deprecation", |
| 9 | + "-unchecked", |
| 10 | + "-feature", |
| 11 | + "-language:postfixOps", |
| 12 | + "-language:implicitConversions", |
| 13 | + "-Ywarn-unused-import", |
| 14 | + "-Ywarn-unused" |
| 15 | +) |
2 | 16 |
|
3 |
| -parallelExecution in ThisBuild := false // due to use a single Zabbix stub server |
4 |
| - |
5 |
| -val commonSettings = Seq( |
6 |
| - version := "0.1.0", |
7 |
| - scalaVersion := "2.11.8", |
8 |
| - scalacOptions ++= Seq( |
9 |
| - "-deprecation", |
10 |
| - "-unchecked", |
11 |
| - "-feature", |
12 |
| - "-language:postfixOps", |
13 |
| - "-language:implicitConversions", |
14 |
| - "-Ywarn-unused-import", |
15 |
| - "-Ywarn-unused" |
16 |
| - ), |
17 |
| - libraryDependencies ++= Seq( |
18 |
| - "com.typesafe.scala-logging" %% "scala-logging" % "3.4.0", |
19 |
| - "ch.qos.logback" % "logback-classic" % "1.1.7", |
20 |
| - "org.scalatest" % "scalatest_2.11" % "2.2.6" % "test", |
21 |
| - "org.mockito" % "mockito-all" % "1.10.19" % "test" |
22 |
| - ), |
23 |
| - test in assembly := {} |
| 17 | +resolvers += Resolver.sonatypeRepo("public") |
| 18 | +val playVersion = "2.5.7" |
| 19 | +libraryDependencies ++= Seq( |
| 20 | + "com.typesafe.scala-logging" %% "scala-logging" % "3.4.0", |
| 21 | + "ch.qos.logback" % "logback-classic" % "1.1.7", |
| 22 | + "org.scalatest" % "scalatest_2.11" % "2.2.6" % "test", |
| 23 | + "org.mockito" % "mockito-all" % "1.10.19" % "test", |
| 24 | + "com.ning" % "async-http-client" % "1.9.33", |
| 25 | + "com.typesafe.play" % "play-json_2.11" % playVersion, |
| 26 | + "ai.x" %% "play-json-extensions" % "0.8.0", // https://github.com/playframework/playframework/issues/3174 |
| 27 | + "com.typesafe" % "config" % "1.3.0", |
| 28 | + "com.chuusai" %% "shapeless" % "2.3.2", |
| 29 | + "com.github.scopt" %% "scopt" % "3.5.0" |
24 | 30 | )
|
25 | 31 |
|
26 |
| -val core = project.in(file("./core")) |
27 |
| - .settings(commonSettings: _*) |
28 |
| - .settings( |
29 |
| - name := "zabbicook-core", |
30 |
| - libraryDependencies ++= Seq( |
31 |
| - "com.ning" % "async-http-client" % "1.9.33", |
32 |
| - "com.typesafe.play" % "play-json_2.11" % playVersion, |
33 |
| - "ai.x" %% "play-json-extensions" % "0.8.0", // https://github.com/playframework/playframework/issues/3174 |
34 |
| - "com.typesafe" % "config" % "1.3.0", |
35 |
| - "com.chuusai" %% "shapeless" % "2.3.2" |
36 |
| - ) |
37 |
| - ) |
38 |
| - |
39 |
| -val cli = project.in(file("./cli")) |
40 |
| - .enablePlugins(BuildInfoPlugin) |
41 |
| - .settings(commonSettings: _*) |
42 |
| - .settings( |
43 |
| - name := "zabbicook-cli", |
44 |
| - resolvers += Resolver.sonatypeRepo("public"), |
45 |
| - libraryDependencies ++= Seq( |
46 |
| - "com.github.scopt" %% "scopt" % "3.5.0" |
47 |
| - ), |
48 |
| - buildInfoKeys := Seq[BuildInfoKey](name, version), |
49 |
| - buildInfoPackage := "com.github.zabbicook.cli", |
50 |
| - mainClass in assembly := Some("com.github.zabbicook.cli.Main"), |
51 |
| - assemblyJarName in assembly := { s"${name.value}-${version.value}.jar" } |
52 |
| - ) |
53 |
| - .dependsOn( |
54 |
| - core, |
55 |
| - core % "test->test" |
56 |
| - ) |
57 |
| - |
58 |
| -val root = Project("zabbicook", file("./")) |
59 |
| - .aggregate(core, cli) |
| 32 | + |
| 33 | +buildInfoKeys := Seq[BuildInfoKey](name, version) |
| 34 | +buildInfoPackage := "com.github.zabbicook.cli" |
| 35 | +mainClass in assembly := Some("com.github.zabbicook.cli.Main") |
| 36 | +assemblyJarName in assembly := { s"${name.value}-${version.value}.jar" } |
| 37 | + |
| 38 | +parallelExecution in Test := false // due to use a single Zabbix stub server |
| 39 | +test in assembly := {} |
60 | 40 |
|
0 commit comments