diff options
Diffstat (limited to 'build.sbt')
| -rw-r--r-- | build.sbt | 40 |
1 files changed, 34 insertions, 6 deletions
| @@ -1,10 +1,10 @@ | |||
| 1 | import Dependencies._ | 1 | import Dependencies._ |
| 2 | 2 | ||
| 3 | ThisBuild / scalaVersion := "2.13.4" | 3 | ThisBuild / scalaVersion := "2.13.4" |
| 4 | ThisBuild / version := "0.1.0" | 4 | ThisBuild / version := "0.1.0" |
| 5 | ThisBuild / organization := "uk.ac.ox.cs.rsacomb" | 5 | ThisBuild / organization := "uk.ac.ox.cs.rsacomb" |
| 6 | ThisBuild / organizationName := "Department of Computer Science - University of Oxford" | 6 | ThisBuild / organizationName := "Department of Computer Science - University of Oxford" |
| 7 | ThisBuild / organizationHomepage := Some(url("https://www.cs.ox.ac.uk")) | 7 | ThisBuild / organizationHomepage := Some(url("https://www.cs.ox.ac.uk")) |
| 8 | 8 | ||
| 9 | ThisBuild / scmInfo := Some( | 9 | ThisBuild / scmInfo := Some( |
| 10 | ScmInfo( | 10 | ScmInfo( |
| @@ -23,7 +23,9 @@ ThisBuild / scmInfo := Some( | |||
| 23 | 23 | ||
| 24 | ThisBuild / description := "Re-implementation of the combined approach for CQ answering over RSA ontologies." | 24 | ThisBuild / 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")) |
| 26 | ThisBuild / homepage := Some(url("https://github.com/KRR-Oxford/RSA-combined-approach")) | 26 | ThisBuild / homepage := Some( |
| 27 | url("https://github.com/KRR-Oxford/RSA-combined-approach") | ||
| 28 | ) | ||
| 27 | 29 | ||
| 28 | lazy val root = (project in file(".")) | 30 | lazy 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 | */ | ||
| 48 | assemblyExcludedJars 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 | */ | ||
| 59 | assemblyMergeStrategy 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 | } | ||
