-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
47 lines (41 loc) · 1.57 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
fork in run := true
connectInput in run := true
cancelable in Global := true
scalacOptions ++= Seq(
"-unchecked",
"-deprecation",
"-feature",
"-Ypartial-unification"
)
resolvers += Resolver.sonatypeRepo("releases")
initialCommands in console := Settings.consoleInit
val copyrightName = "N. Justus"
val copyrightYear = "2019-Today"
val license = "MPLv2"
lazy val root = (project in file("."))
.enablePlugins(BuildInfoPlugin, JavaAppPackaging)
.settings(Settings.settings)
.settings(
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full),
version := IO.read(file("./project/version.txt")).trim(),
buildInfoKeys := Seq[BuildInfoKey](name, version,
BuildInfoKey.action("license") (license),
BuildInfoKey.action("licenseUri") ("https://www.mozilla.org/en-US/MPL/2.0"),
BuildInfoKey.action("copyright")(s"(c) $copyrightYear $copyrightName"),
BuildInfoKey.action("commit") {
Settings.latestCommitHash()
}), // re-computed each time at compile,
headerLicense := Some(HeaderLicense.MPLv2(copyrightYear, copyrightName)),
name := "webmodelica",
mainClass in Compile := Some("webmodelica.core.WMServerMain"),
libraryDependencies ++= Dependencies.deps
// dependencyOverrides ++= Seq(
// "com.google.guava" % "guava" % "19.0"
// ),
)
lazy val schemaGenerator = (project in file("./schema-generator"))
.settings(Settings.settings)
.settings(
scalaSource in Compile := baseDirectory.value / "src",
libraryDependencies ++= Dependencies.generatorDeps)
.dependsOn(root)