-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
59 lines (49 loc) · 2.29 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
name := "PPS-20-caw"
version := "0.1"
scalaVersion := "3.3.0"
scalacOptions ++= Seq("-language:implicitConversions")
idePackagePrefix := Some("it.unibo.pps.caw")
Compile / resourceGenerators += Def.task {
val outputFile: File = (Compile / resourceManaged).value / "cellmachine.pl"
IO.write(
outputFile,
IO.readLines((Compile / resourceDirectory).value / "cellmachine.pl").filterNot(_.startsWith("%")).mkString("\n")
)
Seq(outputFile)
}.taskValue
Compile / excludeFilter := "*.pl"
assembly / mainClass := Some("it.unibo.pps.caw.app.Main")
assembly / assemblyJarName := "caw.jar"
assembly / assemblyMergeStrategy := {
case PathList("META-INF", "io.netty.versions.properties") => MergeStrategy.discard
case "module-info.class" => MergeStrategy.discard
case v => (ThisBuild / assemblyMergeStrategy).value(v)
}
lazy val osName = System.getProperty("os.name") match {
case n if n.startsWith("Linux") => "linux"
case n if n.startsWith("Mac") => "mac"
case n if n.startsWith("Windows") => "win"
}
ThisBuild / resolvers += Resolver.jcenterRepo
Test / fork := true
libraryDependencies ++= Seq(
"org.scalactic" %% "scalactic" % "3.2.16" % Test,
"org.scalatest" %% "scalatest" % "3.2.16" % Test,
"org.typelevel" %% "cats-core" % "2.9.0",
"org.typelevel" %% "cats-kernel" % "2.9.0",
"com.typesafe.play" %% "play-json" % "2.10.0-RC9",
"org.scalafx" %% "scalafx" % "20.0.0-R31",
"io.vertx" % "vertx-json-schema" % "4.4.4",
"it.unibo.alice.tuprolog" % "tuprolog" % "3.3.0",
"org.testfx" % "testfx-core" % "4.0.16-alpha" % Test,
"org.junit.jupiter" % "junit-jupiter" % "5.10.0" % Test,
"net.aichler" % "jupiter-interface" % JupiterKeys.jupiterVersion.value % Test,
"org.testfx" % "testfx-junit5" % "4.0.16-alpha" % Test,
"org.assertj" % "assertj-core" % "3.24.2" % Test,
"org.testfx" % "openjfx-monocle" % "jdk-12.0.1+2" % Test,
"org.openjfx" % "javafx-base" % "20.0.2" classifier osName,
"org.openjfx" % "javafx-controls" % "20.0.2" classifier osName,
"org.openjfx" % "javafx-fxml" % "20.0.2" classifier osName,
"org.openjfx" % "javafx-graphics" % "20.0.2" classifier osName,
"org.openjfx" % "javafx-media" % "20.0.2" classifier osName
)