summaryrefslogtreecommitdiff
path: root/build.sc
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2019-06-15 08:40:34 +0200
committerLi Haoyi <haoyi.sg@gmail.com>2019-06-15 08:44:22 +0200
commit29fc3b6c8f74ece3b6e6cf354f0e342bbf8511ac (patch)
tree99671760586565881faf696da17c6865af07ead9 /build.sc
parent438ef5a1e4ce39cbb60c686eecc4ec43abb757dc (diff)
downloadcask-29fc3b6c8f74ece3b6e6cf354f0e342bbf8511ac.tar.gz
cask-29fc3b6c8f74ece3b6e6cf354f0e342bbf8511ac.tar.bz2
cask-29fc3b6c8f74ece3b6e6cf354f0e342bbf8511ac.zip
0.2.1: support for Scala 2.13.0. Some tests using Quill disabled until they get on 2.13 as well0.2.1
Small typos There were pair of really inconsequential typos in the documentation. .
Diffstat (limited to 'build.sc')
-rw-r--r--build.sc47
1 files changed, 23 insertions, 24 deletions
diff --git a/build.sc b/build.sc
index 99e1261..b7f3ed1 100644
--- a/build.sc
+++ b/build.sc
@@ -17,21 +17,21 @@ import $file.example.scalatags.build
import $file.example.staticFiles.build
import $file.example.todo.build
import $file.example.todoApi.build
-import $file.example.todoDb.build
+//import $file.example.todoDb.build
import $file.example.twirl.build
import $file.example.variableRoutes.build
import $file.example.websockets.build
object cask extends ScalaModule with PublishModule {
- def scalaVersion = "2.12.6"
+ def scalaVersion = "2.13.0"
def ivyDeps = Agg(
ivy"org.scala-lang:scala-reflect:${scalaVersion()}",
ivy"io.undertow:undertow-core:2.0.13.Final",
- ivy"com.lihaoyi::upickle:0.7.1",
+ ivy"com.lihaoyi::upickle:0.7.5",
)
- def compileIvyDeps = Agg(ivy"com.lihaoyi::acyclic:0.1.7")
+ def compileIvyDeps = Agg(ivy"com.lihaoyi::acyclic:0.2.0")
def scalacOptions = Seq("-P:acyclic:force")
- def scalacPluginIvyDeps = Agg(ivy"com.lihaoyi::acyclic:0.1.7")
+ def scalacPluginIvyDeps = Agg(ivy"com.lihaoyi::acyclic:0.2.0")
def publishVersion = build.publishVersion()._2
@@ -50,10 +50,10 @@ object cask extends ScalaModule with PublishModule {
def testFrameworks = Seq("utest.runner.Framework")
def ivyDeps = Agg(
- ivy"com.lihaoyi::utest::0.6.6",
- ivy"com.lihaoyi::requests::0.1.5",
- ivy"org.xerial:sqlite-jdbc:3.18.0",
- ivy"io.getquill::quill-jdbc:2.6.0"
+ ivy"com.lihaoyi::utest::0.6.9",
+ ivy"com.lihaoyi::requests::0.2.0",
+// ivy"org.xerial:sqlite-jdbc:3.18.0",
+// ivy"io.getquill::quill-jdbc:2.6.0"
)
}
}
@@ -78,9 +78,9 @@ object example extends Module{
object redirectAbort extends $file.example.redirectAbort.build.AppModule with LocalModule
object scalatags extends $file.example.scalatags.build.AppModule with LocalModule
object staticFiles extends $file.example.staticFiles.build.AppModule with LocalModule
- object todo extends $file.example.todo.build.AppModule with LocalModule
+// object todo extends $file.example.todo.build.AppModule with LocalModule
object todoApi extends $file.example.todoApi.build.AppModule with LocalModule
- object todoDb extends $file.example.todoDb.build.AppModule with LocalModule
+// object todoDb extends $file.example.todoDb.build.AppModule with LocalModule
object twirl extends $file.example.twirl.build.AppModule with LocalModule
object variableRoutes extends $file.example.variableRoutes.build.AppModule with LocalModule
object websockets extends $file.example.websockets.build.AppModule with LocalModule
@@ -93,17 +93,16 @@ def uploadToGithub(authKey: String) = T.command{
val (releaseTag, label) = publishVersion()
if (releaseTag == label){
- scalaj.http.Http("https://api.github.com/repos/lihaoyi/cask/releases")
- .postData(
- ujson.write(
- Js.Obj(
- "tag_name" -> releaseTag,
- "name" -> releaseTag
- )
+ requests.post(
+ "https://api.github.com/repos/lihaoyi/cask/releases",
+ data = ujson.write(
+ Js.Obj(
+ "tag_name" -> releaseTag,
+ "name" -> releaseTag
)
- )
- .header("Authorization", "token " + authKey)
- .asString
+ ),
+ headers = Seq("Authorization" -> s"token $authKey")
+ )
}
val examples = Seq(
@@ -121,9 +120,9 @@ def uploadToGithub(authKey: String) = T.command{
$file.example.redirectAbort.build.millSourcePath,
$file.example.scalatags.build.millSourcePath,
$file.example.staticFiles.build.millSourcePath,
- $file.example.todo.build.millSourcePath,
+// $file.example.todo.build.millSourcePath,
$file.example.todoApi.build.millSourcePath,
- $file.example.todoDb.build.millSourcePath,
+// $file.example.todoDb.build.millSourcePath,
$file.example.twirl.build.millSourcePath,
$file.example.variableRoutes.build.millSourcePath,
$file.example.websockets.build.millSourcePath,
@@ -139,7 +138,7 @@ def uploadToGithub(authKey: String) = T.command{
|if [ ! -f out/mill-cask ]; then
| echo "Initializing Cask/Mill build tool for the first time"
| mkdir -p out &&
- | (echo "#!/usr/bin/env sh" && curl -L https://github.com/lihaoyi/mill/releases/download/0.2.6/0.2.6-27-613878) > out/mill-cask
+ | (echo "#!/usr/bin/env sh" && curl -L https://github.com/lihaoyi/mill/releases/download/0.4.1/0.4.1-4-158d11) > out/mill-cask
|fi
|
|chmod +x out/mill-cask