diff --git a/build.sc b/build.sc index bba7440430..b542ad368f 100644 --- a/build.sc +++ b/build.sc @@ -58,7 +58,7 @@ object cask extends ScalaModule with PublishModule { } object example extends Module{ trait LocalModule extends ScalaModule{ - def ivyDeps = super.ivyDeps().filter(_ != ivy"com.lihaoyi::cask:0.0.8") + def ivyDeps = super.ivyDeps().filter(_ != ivy"com.lihaoyi::cask:0.0.9") override def millSourcePath = super.millSourcePath / "app" def moduleDeps = Seq(cask) @@ -126,7 +126,7 @@ def uploadToGithub(authKey: String) = T.command{ $file.example.websockets.build.millSourcePath, ) for(example <- examples){ - val f = tmp.dir() + val f = T.ctx().dest val last = example.last + "-" + label cp(example, f/last) write.over( @@ -149,7 +149,8 @@ def uploadToGithub(authKey: String) = T.command{ read(f/last/"build.sc").replace("trait AppModule ", "object app ") ) - %%("zip", "-r", f/"out.zip", f/last)(f) + rm(f/"out.zip") + %%("zip", "-r", f/"out.zip", last)(f) upload.apply(f/"out.zip", releaseTag, last + ".zip", authKey) } } diff --git a/example/compress/build.sc b/example/compress/build.sc index 415ad8fb4c..0e803b8a87 100644 --- a/example/compress/build.sc +++ b/example/compress/build.sc @@ -4,7 +4,7 @@ import mill._, scalalib._ trait AppModule extends ScalaModule{ def scalaVersion = "2.12.6" def ivyDeps = Agg( - ivy"com.lihaoyi::cask:0.0.8", + ivy"com.lihaoyi::cask:0.0.9", ) object test extends Tests{ diff --git a/example/compress2/build.sc b/example/compress2/build.sc index 415ad8fb4c..0e803b8a87 100644 --- a/example/compress2/build.sc +++ b/example/compress2/build.sc @@ -4,7 +4,7 @@ import mill._, scalalib._ trait AppModule extends ScalaModule{ def scalaVersion = "2.12.6" def ivyDeps = Agg( - ivy"com.lihaoyi::cask:0.0.8", + ivy"com.lihaoyi::cask:0.0.9", ) object test extends Tests{ diff --git a/example/compress3/build.sc b/example/compress3/build.sc index 415ad8fb4c..0e803b8a87 100644 --- a/example/compress3/build.sc +++ b/example/compress3/build.sc @@ -4,7 +4,7 @@ import mill._, scalalib._ trait AppModule extends ScalaModule{ def scalaVersion = "2.12.6" def ivyDeps = Agg( - ivy"com.lihaoyi::cask:0.0.8", + ivy"com.lihaoyi::cask:0.0.9", ) object test extends Tests{ diff --git a/example/cookies/build.sc b/example/cookies/build.sc index 415ad8fb4c..0e803b8a87 100644 --- a/example/cookies/build.sc +++ b/example/cookies/build.sc @@ -4,7 +4,7 @@ import mill._, scalalib._ trait AppModule extends ScalaModule{ def scalaVersion = "2.12.6" def ivyDeps = Agg( - ivy"com.lihaoyi::cask:0.0.8", + ivy"com.lihaoyi::cask:0.0.9", ) object test extends Tests{ diff --git a/example/decorated/build.sc b/example/decorated/build.sc index 415ad8fb4c..0e803b8a87 100644 --- a/example/decorated/build.sc +++ b/example/decorated/build.sc @@ -4,7 +4,7 @@ import mill._, scalalib._ trait AppModule extends ScalaModule{ def scalaVersion = "2.12.6" def ivyDeps = Agg( - ivy"com.lihaoyi::cask:0.0.8", + ivy"com.lihaoyi::cask:0.0.9", ) object test extends Tests{ diff --git a/example/decorated2/build.sc b/example/decorated2/build.sc index 415ad8fb4c..0e803b8a87 100644 --- a/example/decorated2/build.sc +++ b/example/decorated2/build.sc @@ -4,7 +4,7 @@ import mill._, scalalib._ trait AppModule extends ScalaModule{ def scalaVersion = "2.12.6" def ivyDeps = Agg( - ivy"com.lihaoyi::cask:0.0.8", + ivy"com.lihaoyi::cask:0.0.9", ) object test extends Tests{ diff --git a/example/endpoints/build.sc b/example/endpoints/build.sc index 415ad8fb4c..0e803b8a87 100644 --- a/example/endpoints/build.sc +++ b/example/endpoints/build.sc @@ -4,7 +4,7 @@ import mill._, scalalib._ trait AppModule extends ScalaModule{ def scalaVersion = "2.12.6" def ivyDeps = Agg( - ivy"com.lihaoyi::cask:0.0.8", + ivy"com.lihaoyi::cask:0.0.9", ) object test extends Tests{ diff --git a/example/formJsonPost/build.sc b/example/formJsonPost/build.sc index 415ad8fb4c..0e803b8a87 100644 --- a/example/formJsonPost/build.sc +++ b/example/formJsonPost/build.sc @@ -4,7 +4,7 @@ import mill._, scalalib._ trait AppModule extends ScalaModule{ def scalaVersion = "2.12.6" def ivyDeps = Agg( - ivy"com.lihaoyi::cask:0.0.8", + ivy"com.lihaoyi::cask:0.0.9", ) object test extends Tests{ diff --git a/example/httpMethods/build.sc b/example/httpMethods/build.sc index 415ad8fb4c..0e803b8a87 100644 --- a/example/httpMethods/build.sc +++ b/example/httpMethods/build.sc @@ -4,7 +4,7 @@ import mill._, scalalib._ trait AppModule extends ScalaModule{ def scalaVersion = "2.12.6" def ivyDeps = Agg( - ivy"com.lihaoyi::cask:0.0.8", + ivy"com.lihaoyi::cask:0.0.9", ) object test extends Tests{ diff --git a/example/minimalApplication/build.sc b/example/minimalApplication/build.sc index 415ad8fb4c..0e803b8a87 100644 --- a/example/minimalApplication/build.sc +++ b/example/minimalApplication/build.sc @@ -4,7 +4,7 @@ import mill._, scalalib._ trait AppModule extends ScalaModule{ def scalaVersion = "2.12.6" def ivyDeps = Agg( - ivy"com.lihaoyi::cask:0.0.8", + ivy"com.lihaoyi::cask:0.0.9", ) object test extends Tests{ diff --git a/example/minimalApplication2/build.sc b/example/minimalApplication2/build.sc index 415ad8fb4c..0e803b8a87 100644 --- a/example/minimalApplication2/build.sc +++ b/example/minimalApplication2/build.sc @@ -4,7 +4,7 @@ import mill._, scalalib._ trait AppModule extends ScalaModule{ def scalaVersion = "2.12.6" def ivyDeps = Agg( - ivy"com.lihaoyi::cask:0.0.8", + ivy"com.lihaoyi::cask:0.0.9", ) object test extends Tests{ diff --git a/example/redirectAbort/build.sc b/example/redirectAbort/build.sc index 415ad8fb4c..0e803b8a87 100644 --- a/example/redirectAbort/build.sc +++ b/example/redirectAbort/build.sc @@ -4,7 +4,7 @@ import mill._, scalalib._ trait AppModule extends ScalaModule{ def scalaVersion = "2.12.6" def ivyDeps = Agg( - ivy"com.lihaoyi::cask:0.0.8", + ivy"com.lihaoyi::cask:0.0.9", ) object test extends Tests{ diff --git a/example/scalatags/build.sc b/example/scalatags/build.sc index aab253dfb4..31bf5f6dfd 100644 --- a/example/scalatags/build.sc +++ b/example/scalatags/build.sc @@ -4,7 +4,7 @@ import mill._, scalalib._ trait AppModule extends ScalaModule{ def scalaVersion = "2.12.6" def ivyDeps = Agg( - ivy"com.lihaoyi::cask:0.0.8", + ivy"com.lihaoyi::cask:0.0.9", ivy"com.lihaoyi::scalatags:0.6.7", ) diff --git a/example/staticFiles/build.sc b/example/staticFiles/build.sc index 415ad8fb4c..0e803b8a87 100644 --- a/example/staticFiles/build.sc +++ b/example/staticFiles/build.sc @@ -4,7 +4,7 @@ import mill._, scalalib._ trait AppModule extends ScalaModule{ def scalaVersion = "2.12.6" def ivyDeps = Agg( - ivy"com.lihaoyi::cask:0.0.8", + ivy"com.lihaoyi::cask:0.0.9", ) object test extends Tests{ diff --git a/example/todo/build.sc b/example/todo/build.sc index d9ee8bc4dd..c8cbe8e6b7 100644 --- a/example/todo/build.sc +++ b/example/todo/build.sc @@ -4,7 +4,7 @@ import mill._, scalalib._ trait AppModule extends ScalaModule{ def scalaVersion = "2.12.6" def ivyDeps = Agg( - ivy"com.lihaoyi::cask:0.0.8", + ivy"com.lihaoyi::cask:0.0.9", ivy"org.xerial:sqlite-jdbc:3.18.0", ivy"io.getquill::quill-jdbc:2.5.4", ivy"com.lihaoyi::scalatags:0.6.7", diff --git a/example/todoApi/build.sc b/example/todoApi/build.sc index 415ad8fb4c..0e803b8a87 100644 --- a/example/todoApi/build.sc +++ b/example/todoApi/build.sc @@ -4,7 +4,7 @@ import mill._, scalalib._ trait AppModule extends ScalaModule{ def scalaVersion = "2.12.6" def ivyDeps = Agg( - ivy"com.lihaoyi::cask:0.0.8", + ivy"com.lihaoyi::cask:0.0.9", ) object test extends Tests{ diff --git a/example/todoDb/build.sc b/example/todoDb/build.sc index 9925f73b41..55e7b40956 100644 --- a/example/todoDb/build.sc +++ b/example/todoDb/build.sc @@ -4,7 +4,7 @@ import mill._, scalalib._ trait AppModule extends ScalaModule{ def scalaVersion = "2.12.6" def ivyDeps = Agg( - ivy"com.lihaoyi::cask:0.0.8", + ivy"com.lihaoyi::cask:0.0.9", ivy"org.xerial:sqlite-jdbc:3.18.0", ivy"io.getquill::quill-jdbc:2.5.4" ) diff --git a/example/variableRoutes/build.sc b/example/variableRoutes/build.sc index 415ad8fb4c..0e803b8a87 100644 --- a/example/variableRoutes/build.sc +++ b/example/variableRoutes/build.sc @@ -4,7 +4,7 @@ import mill._, scalalib._ trait AppModule extends ScalaModule{ def scalaVersion = "2.12.6" def ivyDeps = Agg( - ivy"com.lihaoyi::cask:0.0.8", + ivy"com.lihaoyi::cask:0.0.9", ) object test extends Tests{ diff --git a/example/websockets/build.sc b/example/websockets/build.sc index 10da3be787..561c652ded 100644 --- a/example/websockets/build.sc +++ b/example/websockets/build.sc @@ -4,7 +4,7 @@ import mill._, scalalib._ trait AppModule extends ScalaModule{ def scalaVersion = "2.12.6" def ivyDeps = Agg( - ivy"com.lihaoyi::cask:0.0.8", + ivy"com.lihaoyi::cask:0.0.9", ) object test extends Tests{