diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2017-02-13 10:51:56 +0100 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2017-02-13 10:53:47 +0100 |
commit | b760a506934fe134222be0a41786f913b53a9008 (patch) | |
tree | d8d75ae231997fe2d35a99dbdf4fb649d4336589 /project | |
parent | 04c1ce2c9a81e79191ce34d15a439112eefb0c83 (diff) | |
download | dotty-b760a506934fe134222be0a41786f913b53a9008.tar.gz dotty-b760a506934fe134222be0a41786f913b53a9008.tar.bz2 dotty-b760a506934fe134222be0a41786f913b53a9008.zip |
Add sbt-assembly for dotty-bot
Diffstat (limited to 'project')
-rw-r--r-- | project/Build.scala | 5 | ||||
-rw-r--r-- | project/plugins.sbt | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/project/Build.scala b/project/Build.scala index 6e021a2e3..730632b74 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -4,6 +4,7 @@ import complete.DefaultParsers._ import java.io.{ RandomAccessFile, File } import java.nio.channels.FileLock import scala.reflect.io.Path +import sbtassembly.AssemblyKeys.assembly import org.scalajs.sbtplugin.ScalaJSPlugin import org.scalajs.sbtplugin.ScalaJSPlugin.autoImport._ @@ -173,6 +174,10 @@ object DottyBuild extends Build { settings( resourceDirectory in Test := baseDirectory.value / "test" / "resources", + // specify main and ignore tests when assembling + mainClass in assembly := Some("dotty.tools.bot.Main"), + test in assembly := {}, + libraryDependencies ++= { val circeVersion = "0.7.0" val http4sVersion = "0.15.3" diff --git a/project/plugins.sbt b/project/plugins.sbt index 57bd46581..71a7ef5b6 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -8,3 +8,5 @@ addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0") addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "0.8.0") addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.8") + +addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.3") |