-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
58 lines (50 loc) · 2.26 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
//import de.johoop.jacoco4sbt._
//import JacocoPlugin._
//import AssemblyKeys._
// General settings
ThisBuild / name := "lat-scala-dl-tools"
ThisBuild / organization := "de.tu-dresden.inf.lat"
ThisBuild / version := "0.4.1-SNAPSHOT"
ThisBuild / scalaVersion := "2.12.6" //"2.11.6"
ThisBuild / testOptions in Test := Seq(Tests.Argument(TestFrameworks.JUnit, "-a"))
ThisBuild / assemblyJarName in assembly := name.value+"-standalone.jar"
ThisBuild / test in assembly := { }
ThisBuild / assemblyMergeStrategy in assembly := {
case PathList("net.sourceforge.owlapi", "owlapi-distribution", xs @
_*) => MergeStrategy.first
case PathList(ps @ _*) if ps.last endsWith ".class" => MergeStrategy.first
// case PathList(ps @ _*) if ps.last endsWith ".html" => MergeStrategy.first
// case "application.conf" => MergeStrategy.concat
// case "unwanted.txt" =>
// MergeStrategy.discard
case "META-INF/axiom.xml" => MergeStrategy.first
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
}
ThisBuild / scalacOptions in (Compile, doc) ++= Seq("-skip-packages", "uk.ac.man.cs.lethe.internal:uk.ac.man.cs.lethe.klappoExperiments")
ThisBuild / libraryDependencies ++= Seq(
// for unit tests
"org.scalatest" %% "scalatest" % "3.0.5",
"com.novocode" % "junit-interface" % "0.11",
// "org.scala-lang.modules" %% "scala-swing" % "2.1.1",
"org.scala-lang.modules" %% "scala-parser-combinators" % "1.1.0",
// logging related
"ch.qos.logback" % "logback-classic" % "1.2.3",
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.2"
)
lazy val lat_scala_dl_tools_owlapi4 = Project(
id = "lat-scala-dl-tools-owlapi4",
base = file("lat-scala-dl-tools-owlapi4"))
.settings(
name := "lat-scala-dl-tools-owlapi4",
libraryDependencies += "net.sourceforge.owlapi" % "owlapi-distribution" % "4.5.19"
)
lazy val lat_scala_dl_tools_owlapi5 = Project(
id = "lat-scala-dl-tools-owlapi5",
base = file("lat-scala-dl-tools-owlapi5"))
.settings(
name := "lat-scala-dl-tools-owlapi5",
libraryDependencies += "net.sourceforge.owlapi" % "owlapi-distribution" % "5.1.17",
scalaSource in Compile := file(file("lat-scala-dl-tools-owlapi4/src/main/scala").getAbsolutePath),
)