Skip to content

Commit

Permalink
assembly: change jar name and fix main class
Browse files Browse the repository at this point in the history
  • Loading branch information
intracer committed May 29, 2019
1 parent a0c2210 commit 8e6808b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ lazy val commonSettings = Seq(
assert(CompatibleJavaVersion(curr, required), s"Java $required or above required")
},

assemblyJarName in assembly := {
s"${name.value}-${version.value}.jar"
},
test in assembly := {},
assemblyMergeStrategy in assembly := {
case PathList("org", "xmlpull", "v1", xs@_*) => MergeStrategy.first
Expand Down Expand Up @@ -87,8 +90,7 @@ lazy val dumps = Project("scalawiki-dumps", file("scalawiki-dumps"))
.settings(libraryDependencies ++=
Seq("com.fasterxml" % "aalto-xml" % AaltoXmlV,
Library.Commons.compress
),
mainClass in assembly := Some("org.scalawiki.wlx.stat.Statistics")
)
)

lazy val wlx = Project("scalawiki-wlx", file("scalawiki-wlx"))
Expand All @@ -98,7 +100,7 @@ lazy val wlx = Project("scalawiki-wlx", file("scalawiki-wlx"))
libraryDependencies ++= Seq(
"com.github.wookietreiber" %% "scala-chart" % ScalaChartV
),
assemblyJarName in assembly := s"scalawiki-wlx-$version.jar"
mainClass in assembly := Some("org.scalawiki.wlx.stat.Statistics")
)

lazy val sql = Project("scalawiki-sql", file("scalawiki-sql"))
Expand Down

0 comments on commit 8e6808b

Please sign in to comment.