Add sbt-assembly for making jar

This commit is contained in:
Edward Wang
2017-08-01 12:25:42 -07:00
committed by edwardcwang
parent ffd7893d63
commit 00c99f56b1
4 changed files with 12 additions and 3 deletions

View File

@@ -22,6 +22,8 @@ lazy val commonSettings = Seq(
)
)
disablePlugins(sbtassembly.AssemblyPlugin)
lazy val mdf = (project in file("mdf/scalalib"))
lazy val macros = (project in file("macros"))
.dependsOn(mdf)
@@ -29,8 +31,10 @@ lazy val macros = (project in file("macros"))
.settings(Seq(
libraryDependencies ++= Seq(
"edu.berkeley.cs" %% "firrtl-interpreter" % "0.1-SNAPSHOT" % Test
)
),
mainClass := Some("barstools.macros.MacroCompiler")
))
.enablePlugins(sbtassembly.AssemblyPlugin)
lazy val tapeout = (project in file("tapeout"))
.settings(commonSettings)

1
macros/build.sbt Normal file
View File

@@ -0,0 +1 @@
enablePlugins(sbtassembly.AssemblyPlugin)

View File

@@ -9,7 +9,9 @@ object Dependencies {
// Templating!
val handlebarsVersion = "2.1.1"
val handlebars = "com.gilt" %% "handlebars-scala" % handlebarsVersion
val handlebars = "com.gilt" %% "handlebars-scala" % handlebarsVersion exclude("org.slf4j", "slf4j-simple")
// org.slf4j.slf4j-simple's StaticLoggerBinder (from handlebars) conflicts with
// ch.qos.logback.logback-classic's StaticLoggerBinder (from firrtl).
val commonDependencies: Seq[ModuleID] = Seq(
scalatest,
@@ -17,4 +19,4 @@ object Dependencies {
handlebars
)
}
}

2
project/assembly.sbt Normal file
View File

@@ -0,0 +1,2 @@
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.5")
addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.8.2")