Skip to content

Commit

Permalink
0.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Aug 13, 2018
1 parent eddd2fd commit 5cf14a4
Show file tree
Hide file tree
Showing 21 changed files with 29 additions and 28 deletions.
17 changes: 9 additions & 8 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -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.6")
def ivyDeps = super.ivyDeps().filter(_ != ivy"com.lihaoyi::cask:0.0.7")

override def millSourcePath = super.millSourcePath / "app"
def moduleDeps = Seq(cask)
Expand Down Expand Up @@ -127,9 +127,10 @@ def uploadToGithub(authKey: String) = T.command{
)
for(example <- examples){
val f = tmp.dir()
cp(example, f/'folder)
val last = example.last + "-" + label
cp(example, f/last)
write.over(
f/'folder/"cask",
f/last/"cask",
"""#!/usr/bin/env bash
|
|if [ ! -f out/mill-cask ]; then
Expand All @@ -142,14 +143,14 @@ def uploadToGithub(authKey: String) = T.command{
|"$(pwd)"/out/mill-cask "$@"
""".stripMargin
)
%%("chmod", "+x", f/'folder/"cask")(f/'folder)
%%("chmod", "+x", f/last/"cask")(f/last)
write.over(
f/'folder/"build.sc",
read(f/'folder/"build.sc").replace("trait AppModule ", "object app ")
f/last/"build.sc",
read(f/last/"build.sc").replace("trait AppModule ", "object app ")
)

%%("zip", "-r", f/"out.zip", f/'folder)(f/'folder)
upload.apply(f/"out.zip", releaseTag, label + "/" + example.last + ".zip", authKey)
%%("zip", "-r", f/"out.zip", f/'last)(f)
upload.apply(f/"out.zip", releaseTag, last + ".zip", authKey)
}
}

2 changes: 1 addition & 1 deletion docs/build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ val posts = {
val g = m.group(1)
val txt = read(ls(pwd/up/'example/g/'app/'src).head).replace("$", "\\$")
val downloadLink =
s"https://github.com/lihaoyi/cask/releases/download/$releaseTag/$releaseTag.$g.zip"
s"https://github.com/lihaoyi/cask/releases/download/$releaseTag/$g-$releaseTag.zip"

s"""
|```scala
Expand Down
2 changes: 1 addition & 1 deletion example/compress/build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -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.6",
ivy"com.lihaoyi::cask:0.0.7",
)

object test extends Tests{
Expand Down
2 changes: 1 addition & 1 deletion example/compress2/build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -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.6",
ivy"com.lihaoyi::cask:0.0.7",
)

object test extends Tests{
Expand Down
2 changes: 1 addition & 1 deletion example/compress3/build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -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.6",
ivy"com.lihaoyi::cask:0.0.7",
)

object test extends Tests{
Expand Down
2 changes: 1 addition & 1 deletion example/cookies/build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -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.6",
ivy"com.lihaoyi::cask:0.0.7",
)

object test extends Tests{
Expand Down
2 changes: 1 addition & 1 deletion example/decorated/build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -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.6",
ivy"com.lihaoyi::cask:0.0.7",
)

object test extends Tests{
Expand Down
2 changes: 1 addition & 1 deletion example/decorated2/build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -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.6",
ivy"com.lihaoyi::cask:0.0.7",
)

object test extends Tests{
Expand Down
2 changes: 1 addition & 1 deletion example/endpoints/build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -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.6",
ivy"com.lihaoyi::cask:0.0.7",
)

object test extends Tests{
Expand Down
2 changes: 1 addition & 1 deletion example/formJsonPost/build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -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.6",
ivy"com.lihaoyi::cask:0.0.7",
)

object test extends Tests{
Expand Down
2 changes: 1 addition & 1 deletion example/httpMethods/build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -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.6",
ivy"com.lihaoyi::cask:0.0.7",
)

object test extends Tests{
Expand Down
2 changes: 1 addition & 1 deletion example/minimalApplication/build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -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.6",
ivy"com.lihaoyi::cask:0.0.7",
)

object test extends Tests{
Expand Down
2 changes: 1 addition & 1 deletion example/minimalApplication2/build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -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.6",
ivy"com.lihaoyi::cask:0.0.7",
)

object test extends Tests{
Expand Down
2 changes: 1 addition & 1 deletion example/redirectAbort/build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -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.6",
ivy"com.lihaoyi::cask:0.0.7",
)

object test extends Tests{
Expand Down
2 changes: 1 addition & 1 deletion example/scalatags/build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -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.6",
ivy"com.lihaoyi::cask:0.0.7",
ivy"com.lihaoyi::scalatags:0.6.7",
)

Expand Down
2 changes: 1 addition & 1 deletion example/staticFiles/build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -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.6",
ivy"com.lihaoyi::cask:0.0.7",
)

object test extends Tests{
Expand Down
2 changes: 1 addition & 1 deletion example/todo/build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -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.6",
ivy"com.lihaoyi::cask:0.0.7",
ivy"org.xerial:sqlite-jdbc:3.18.0",
ivy"io.getquill::quill-jdbc:2.5.4",
ivy"com.lihaoyi::scalatags:0.6.7",
Expand Down
2 changes: 1 addition & 1 deletion example/todoApi/build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -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.6",
ivy"com.lihaoyi::cask:0.0.7",
)

object test extends Tests{
Expand Down
2 changes: 1 addition & 1 deletion example/todoDb/build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -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.6",
ivy"com.lihaoyi::cask:0.0.7",
ivy"org.xerial:sqlite-jdbc:3.18.0",
ivy"io.getquill::quill-jdbc:2.5.4"
)
Expand Down
2 changes: 1 addition & 1 deletion example/variableRoutes/build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -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.6",
ivy"com.lihaoyi::cask:0.0.7",
)

object test extends Tests{
Expand Down
2 changes: 1 addition & 1 deletion example/websockets/build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -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.6",
ivy"com.lihaoyi::cask:0.0.7",
)

object test extends Tests{
Expand Down

0 comments on commit 5cf14a4

Please sign in to comment.