aboutsummaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
authorFederico Igne <federico.igne@cs.ox.ac.uk>2021-01-08 17:50:57 +0000
committerFederico Igne <federico.igne@cs.ox.ac.uk>2021-01-08 17:50:57 +0000
commit35f41c0529f65c4b3ee941e087d497a931d17d9e (patch)
treeab950ccc9a3457a4c60b0d4941dd080301cca13f /build.sbt
parentb0e195336a950095a733f32bf07754254ed08a37 (diff)
downloadRSAComb-35f41c0529f65c4b3ee941e087d497a931d17d9e.tar.gz
RSAComb-35f41c0529f65c4b3ee941e087d497a931d17d9e.zip
Add sbt plugin to create jar with dependences
Also update README.md with info on how to compile and run the program.
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt40
1 files changed, 34 insertions, 6 deletions
diff --git a/build.sbt b/build.sbt
index 860b064..4b774e7 100644
--- a/build.sbt
+++ b/build.sbt
@@ -1,10 +1,10 @@
1import Dependencies._ 1import Dependencies._
2 2
3ThisBuild / scalaVersion := "2.13.4" 3ThisBuild / scalaVersion := "2.13.4"
4ThisBuild / version := "0.1.0" 4ThisBuild / version := "0.1.0"
5ThisBuild / organization := "uk.ac.ox.cs.rsacomb" 5ThisBuild / organization := "uk.ac.ox.cs.rsacomb"
6ThisBuild / organizationName := "Department of Computer Science - University of Oxford" 6ThisBuild / organizationName := "Department of Computer Science - University of Oxford"
7ThisBuild / organizationHomepage := Some(url("https://www.cs.ox.ac.uk")) 7ThisBuild / organizationHomepage := Some(url("https://www.cs.ox.ac.uk"))
8 8
9ThisBuild / scmInfo := Some( 9ThisBuild / scmInfo := Some(
10 ScmInfo( 10 ScmInfo(
@@ -23,7 +23,9 @@ ThisBuild / scmInfo := Some(
23 23
24ThisBuild / description := "Re-implementation of the combined approach for CQ answering over RSA ontologies." 24ThisBuild / description := "Re-implementation of the combined approach for CQ answering over RSA ontologies."
25// ThisBuild / licenses := List("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt")) 25// ThisBuild / licenses := List("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt"))
26ThisBuild / homepage := Some(url("https://github.com/KRR-Oxford/RSA-combined-approach")) 26ThisBuild / homepage := Some(
27 url("https://github.com/KRR-Oxford/RSA-combined-approach")
28)
27 29
28lazy val root = (project in file(".")) 30lazy val root = (project in file("."))
29 .settings( 31 .settings(
@@ -36,3 +38,29 @@ lazy val root = (project in file("."))
36 graphcore 38 graphcore
37 ) 39 )
38 ) 40 )
41
42/** Exclude RDFox from the building process
43 *
44 * @see https://github.com/sbt/sbt-assembly#excluding-jars-and-files
45 * for different ways to exclude a specific package from the building
46 * process.
47 */
48assemblyExcludedJars in assembly := {
49 val cp = (fullClasspath in assembly).value
50 cp filter { _.data.getName == "JRDFox.jar" }
51}
52
53/** See these links for more info on merging strategies in
54 * `sbt-assembly`
55 *
56 * https://github.com/sbt/sbt-assembly#merge-strategy
57 * https://stackoverflow.com/a/55557287
58 */
59assemblyMergeStrategy in assembly := {
60 case "module-info.class" =>
61 MergeStrategy.discard
62 case x => {
63 val oldStrategy = (assemblyMergeStrategy in assembly).value
64 oldStrategy(x)
65 }
66}