-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
59 lines (55 loc) · 1.87 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
val scalariform = "0.2.8"
val emfcommon = "2.15.0"
val emfcore = "2.15.0"
val uml2 = "3.1.0.v201006071150"
val scalatest = "3.0.7"
lazy val commonSettings = Seq(
scalaVersion := "2.12.8",
version := "0.0.2",
logBuffered := false,
libraryDependencies ++= Seq(
"org.scalariform" %% "scalariform" % scalariform,
"org.eclipse.emf" % "org.eclipse.emf.common" % emfcommon,
"org.eclipse.emf" % "org.eclipse.emf.ecore" % emfcore,
"org.eclipse.uml2" % "org.eclipse.uml2.uml" % uml2
),
javacOptions in Compile ++= Seq("-source", "1.8", "-target", "1.8"),
scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-language:reflectiveCalls",
"-language:postfixOps",
"-language:implicitConversions",
"-Xlint",
"-Yno-adapted-args",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Xfuture",
"-unchecked",
"-target:jvm-1.8")
)
lazy val root = (project in file(".")).settings(
name := "SCROLLGenRoot"
).aggregate(core, tests)
lazy val core = (project in file("core")).
enablePlugins(SbtTwirl).
settings(commonSettings: _*).
settings(
name := "SCROLLGen",
assemblyMergeStrategy in assembly := {
case "plugin.properties" => MergeStrategy.last
case "plugin.xml" => MergeStrategy.last
case PathList(ps @ _*) if ps.last contains "dynamic_package.exsd" => MergeStrategy.last
case PathList(ps @ _*) if ps.last contains "generated_package.exsd" => MergeStrategy.last
case x => (assemblyMergeStrategy in assembly).value(x)
},
mainClass in compile := Some("SCROLLGen"),
mainClass in assembly := Some("SCROLLGen"),
assemblyJarName in assembly := "SCROLLGen.jar"
)
lazy val tests = (project in file("tests")).
settings(commonSettings: _*).
settings(
parallelExecution in Test := false,
libraryDependencies ++= Seq("org.scalatest" %% "scalatest" % scalatest % "test")
).dependsOn(core)