-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
41 lines (39 loc) · 1.15 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
def scala212 = "2.12.12"
inThisBuild(
List(
organization := "org.scalameta",
homepage := Some(url("https://github.com/scalameta/svm-subs")),
licenses := List(
"Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")
),
developers := List(
Developer(
"olafurpg",
"Ólafur Páll Geirsson",
url("https://geirsson.com")
)
),
scalaVersion := scala212,
crossScalaVersions := List(scala212)
)
)
crossScalaVersions := Nil
skip in publish := true
lazy val subs = project
.in(file("svm-subs"))
.settings(
moduleName := "svm-subs",
crossVersion := CrossVersion.disabled,
libraryDependencies += "org.graalvm.nativeimage" % "svm" % "20.2.0" % "compile-internal",
sources in (Compile, doc) := Seq.empty,
javaHome in Compile := {
// force javac to fork by setting javaHome to workaround https://github.com/sbt/zinc/issues/520
val home = file(sys.props("java.home"))
val actualHome =
if (System.getProperty("java.version").startsWith("1.8"))
home.getParentFile
else home
Some(actualHome)
}
)