Newer
Older
sparql-test-runner / build.sbt
import sbtassembly.AssemblyPlugin.defaultShellScript

name := "sparql-test-runner"

version := "1.3"

organizationName := "Alex Tucker"

startYear := Some(2018)

licenses += ("Apache-2.0", new URL("https://www.apache.org/licenses/LICENSE-2.0.txt"))

scalaVersion := "2.13.4"

libraryDependencies ++= Seq(
  "org.apache.jena" % "jena-arq" % "3.6.0",
  "org.apache.jena" % "jena-cmds" % "3.6.0",
  "com.github.scopt" %% "scopt" % "4.0.0",
  "org.scala-lang.modules" %% "scala-xml" % "1.3.0"
)

mainClass in assembly := Some("uk.org.floop.sparqlTestRunner.Run")

assemblyMergeStrategy in assembly := {
  case PathList("org", "apache", "commons", "logging", xs @ _*)         => MergeStrategy.first
  case PathList("org", "apache", "jena", "tdb", "tdb-properties.xml")   => MergeStrategy.first
  case x =>
    val oldStrategy = (assemblyMergeStrategy in assembly).value
    oldStrategy(x)
}

assemblyOption in assembly := (assemblyOption in assembly).value.copy(prependShellScript = Some(defaultShellScript))

assemblyJarName in assembly := "sparql-test-runner"