Skip to content
Permalink
Browse files

Add decco (and auto) as an ivy dependency.

  • Loading branch information...
jtownson committed Jun 15, 2019
1 parent 14376f7 commit 81036c0e6496be984007f6eca022035256b5d5cd
Showing with 3 additions and 26 deletions.
  1. +3 −26 build.sc
@@ -3,27 +3,6 @@ import mill.modules._
import scalalib._
import ammonite.ops._

def decco = T {
%("git", "clone", "git@github.com:input-output-hk/decco.git")(T.ctx().dest)
%("bazel", "build", "//...")(T.ctx().dest / "decco")

val deccoJar = T.ctx.dest / "decco.jar"

mv(
Jvm
.createAssembly(
Agg(
T.ctx().dest / "decco" / "bazel-bin" / "src" / "io" / "iohk" / "decco" / "decco.jar",
T.ctx().dest / "decco" / "bazel-bin" / "src" / "io" / "iohk" / "decco" / "auto" / "auto.jar"
)
)
.path,
deccoJar
)

PathRef(deccoJar)
}

trait ScalanetModule extends ScalaModule {

def scalaVersion = "2.12.7"
@@ -52,20 +31,18 @@ object library extends ScalanetModule {
ivy"io.monix::monix:3.0.0-RC1",
ivy"com.chuusai::shapeless:2.3.3",
ivy"org.slf4j:slf4j-api:1.7.25",
ivy"io.netty:netty-all:4.1.31.Final"
ivy"io.netty:netty-all:4.1.31.Final",
ivy"io.iohk::decco:HEAD",
ivy"io.iohk::decco-auto:HEAD"
)

def unmanagedClasspath = Agg(decco())

object test extends Tests {
def ivyDeps = Agg(
ivy"org.scalatest::scalatest:3.0.5",
ivy"ch.qos.logback:logback-core:1.2.3",
ivy"ch.qos.logback:logback-classic:1.2.3"
)

def unmanagedClasspath = Agg(decco())

def testFrameworks = Seq("org.scalatest.tools.Framework")

def single(args: String*) = T.command {

0 comments on commit 81036c0

Please sign in to comment.
You can’t perform that action at this time.