aboutsummaryrefslogtreecommitdiff
path: root/build.sbt
blob: a11b402e60e19fe7a93438f47d7eb9bb0cf6d1d2 (plain) (blame)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import Dependencies._

ThisBuild / scalaVersion := "2.13.4"
ThisBuild / version := "0.2.0"
ThisBuild / organization := "uk.ac.ox.cs.rsacomb"
ThisBuild / organizationName := "Department of Computer Science - University of Oxford"
ThisBuild / organizationHomepage := Some(url("https://www.cs.ox.ac.uk"))

ThisBuild / scmInfo := Some(
  ScmInfo(
    url("https://github.com/KRR-Oxford/RSAComb"),
    "scm:git@github.com:KRR-Oxford/RSAComb.git"
  )
)
// ThisBuild / developers := List(
//   Developer(
//     id    = "Your identifier",
//     name  = "Your Name",
//     email = "your@email",
//     url   = url("http://your.url")
//   )
// )

ThisBuild / description := "Re-implementation of the combined approach for CQ answering over RSA ontologies."
ThisBuild / licenses := List(
  "Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt")
)
ThisBuild / homepage := Some(
  url("https://github.com/KRR-Oxford/RSAComb")
)

lazy val root = (project in file("."))
  .settings(
    name := "RSAComb",
    libraryDependencies ++= Seq(
      scalatest % Test,
      scalatestFlatSpec % Test,
      scalatestShouldMatchers % Test,
      apibinding,
      graphcore,
      ujson,
      oslib
    )
  )

/** Execute all tests sequentially
  *
  * This is not ideal but it is an easy way to avoid bad interactions
  * with RDFox.
  */
parallelExecution in Test := false

/** Exclude RDFox from the building process
  *
  * @see https://github.com/sbt/sbt-assembly#excluding-jars-and-files
  * for different ways to exclude a specific package from the building
  * process.
  */
assemblyExcludedJars in assembly := {
  val cp = (fullClasspath in assembly).value
  cp filter { _.data.getName == "JRDFox.jar" }
}

/** See these links for more info on merging strategies in
  * `sbt-assembly`
  *
  *      https://github.com/sbt/sbt-assembly#merge-strategy
  *      https://stackoverflow.com/a/55557287
  */
assemblyMergeStrategy in assembly := {
  case "module-info.class" =>
    MergeStrategy.discard
  case x => {
    val oldStrategy = (assemblyMergeStrategy in assembly).value
    oldStrategy(x)
  }
}