From e6471656d42115ec86d603e0a64ffebf8dac1100 Mon Sep 17 00:00:00 2001 From: Francesco Kriegel Date: Mon, 25 Apr 2022 14:08:28 +0200 Subject: [PATCH] Configuration for generating an assembly jar file --- build.sbt | 15 +++++++++++++-- project/assembly.sbt | 1 + 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 project/assembly.sbt diff --git a/build.sbt b/build.sbt index b2f3f5f..3465cc0 100644 --- a/build.sbt +++ b/build.sbt @@ -5,8 +5,8 @@ ThisBuild / scalaVersion := "3.1.1" lazy val root = (project in file(".")) .settings( - name := "right-repairs-of-el-tboxes", - idePackagePrefix := Some("de.tu_dresden.inf.lat.repairs") + name := "right-repairs-of-el-tboxes" + // , idePackagePrefix := "de.tu_dresden.inf.lat.repairs" ) resolvers += @@ -15,3 +15,14 @@ resolvers += libraryDependencies += "net.sourceforge.owlapi" % "owlapi-distribution" % "5.1.20" libraryDependencies += "org.phenoscape" %% "scowl-owlapi5" % "1.4.1" libraryDependencies += "org.semanticweb.elk" % "elk-owlapi5" % "0.5.0-SNAPSHOT" + +ThisBuild / assemblyMergeStrategy := { + case PathList("module-info.class") => MergeStrategy.discard + case x if x.endsWith("/module-info.class") => MergeStrategy.discard + case x => + val oldStrategy = (ThisBuild / assemblyMergeStrategy).value + oldStrategy(x) +} + +Compile / mainClass := Some("de.tu_dresden.inf.lat.repairs.Main") +//assembly / mainClass := Some("de.tu_dresden.inf.lat.repairs.Main") \ No newline at end of file diff --git a/project/assembly.sbt b/project/assembly.sbt new file mode 100644 index 0000000..e7f7e88 --- /dev/null +++ b/project/assembly.sbt @@ -0,0 +1 @@ +addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "1.2.0") \ No newline at end of file