-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
48 lines (44 loc) · 1.65 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
lazy val commonSettings = Seq(
organization := "org.leo",
version := "0.2.2",
scalaVersion := "2.13.14",
scalacOptions ++= Seq(
"-deprecation",
"-feature",
),
licenses += "MIT" -> url("https://opensource.org/license/MIT"),
resolvers ++= Resolver.sonatypeOssRepos("snapshots"),
libraryDependencies += "io.github.leoprover" %% "scala-tptp-parser" % "1.7.1+3-49425aa8-SNAPSHOT"
)
lazy val embedding = (project in file("."))
.disablePlugins(sbtassembly.AssemblyPlugin)
.settings(
commonSettings,
name := "ask",
description := "Alex' Skolemizer",
).aggregate(runtime, app)
lazy val runtime = (project in file("ask-runtime"))
.settings(
commonSettings,
name := "ask-runtime",
assembly / assemblyOption ~= {
_.withIncludeScala(false)
},
assembly/test := {},
assembly/assemblyJarName := s"${name.value}-${version.value}.jar",
unmanagedBase := baseDirectory.value / ".." / "lib"
)
lazy val app = (project in file("ask-app"))
.enablePlugins(NativeImagePlugin)
.settings(
commonSettings,
name := "ask-app",
Compile/mainClass := Some("leo.modules.ASkApp"),
assembly/mainClass := Some("leo.modules.ASkApp"),
assembly/assemblyJarName := s"${name.value}-${version.value}.jar",
assembly/test := {},
unmanagedBase := baseDirectory.value / ".." / "lib",
nativeImageOptions += s"-H:ReflectionConfigurationFiles=${baseDirectory.value / ".." / "contrib" / "native-image-configs" / "reflect-config.json"}",
nativeImageOptions += s"-H:ConfigurationFileDirectories=${baseDirectory.value / ".." / "contrib" / "native-image-configs" }",
nativeImageOptions +="-H:+JNI"
).dependsOn(runtime)