Skip to content

Commit 0bdfa71

Browse files
committed
Unified all projects.
1 parent 72e2caa commit 0bdfa71

File tree

121 files changed

+53
-71
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+53
-71
lines changed

build.sbt

Lines changed: 36 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,40 @@
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+
)
216

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"
2430
)
2531

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 := {}
6040

core/src/test/resources/logback.xml

Lines changed: 0 additions & 11 deletions
This file was deleted.

dist-cli.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ mkdir -p $WORK/$NAME
1313

1414
sbt clean compile assembly
1515

16-
cp cli/target/scala-2.11/*.jar $WORK/$NAME
17-
cp cli/src/scripts/$NAME $WORK/$NAME
16+
cp target/scala-2.11/*.jar $WORK/$NAME
17+
cp scripts/$NAME $WORK/$NAME
1818
zip -r $WORK/$NAME-$VERSION.zip $WORK/$NAME
1919

2020
echo packaged $WORK/$NAME-$VERSION.zip
File renamed without changes.

0 commit comments

Comments
 (0)