Skip to content

Commit

Permalink
Fix published examples (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
jodersky authored Oct 1, 2020
1 parent e80a21a commit d80b698
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ def uploadToGithub(authKey: String) = T.command{
os.write.over(
f / last / "build.sc",
os.read(f / last / "build.sc")
.replace("trait AppModule ", "object app ")
.replaceFirst(
"trait AppModule extends CrossScalaModule\\s*\\{",
"object app extends ScalaModule \\{\n def scalaVersion = \"2.13.3\"")
.replaceFirst(
"def ivyDeps = Agg\\[Dep\\]\\(",
"def ivyDeps = Agg(\n ivy\"com.lihaoyi::cask:" + releaseTag + "\","
Expand Down
3 changes: 3 additions & 0 deletions example/minimalApplication/build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import mill._, scalalib._


trait AppModule extends CrossScalaModule{

def ivyDeps = Agg[Dep](
)
object test extends Tests{
def testFrameworks = Seq("utest.runner.Framework")

Expand Down

0 comments on commit d80b698

Please sign in to comment.