tartrazine/java/build.sbt
Miguel Molina 818f77fc42
enry-java: publish fat jar without any classifiers in assembly task
Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
2017-09-04 11:49:14 +02:00

26 lines
753 B
Scala

name := "enry-java"
organization := "tech.sourced"
version := "1.0"
crossPaths := false
autoScalaLibrary := false
publishMavenStyle := true
exportJars := true
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % Test
unmanagedBase := baseDirectory.value / "lib"
unmanagedClasspath in Test += baseDirectory.value / "shared"
unmanagedClasspath in Runtime += baseDirectory.value / "shared"
unmanagedClasspath in Compile += baseDirectory.value / "shared"
testOptions += Tests.Argument(TestFrameworks.JUnit)
publishArtifact in (Compile, packageBin) := false
artifact in (Compile, assembly) := {
val art = (artifact in (Compile, assembly)).value
art.copy(`classifier` = None)
}
addArtifact(artifact in (Compile, assembly), assembly)