Newer
Older
sparql-test-runner / build.sbt
@Alex Tucker Alex Tucker on 25 Jun 2018 1022 bytes Add APLv2
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.12.4"

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

mainClass in assembly := Some("arq.sparql")

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"