aboutsummaryrefslogtreecommitdiff
path: root/build.sc
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2021-02-25 22:08:51 +0000
committerJuan J. Martinez <jjm@usebox.net>2021-02-25 22:11:22 +0000
commit26f9cb8e66e836607851aab623223aef478f3b27 (patch)
tree3e2c5449c8a7a80b912641da1b144d5169aab912 /build.sc
downloadspacebeans-26f9cb8e66e836607851aab623223aef478f3b27.tar.gz
spacebeans-26f9cb8e66e836607851aab623223aef478f3b27.zip
Initial public dump
Diffstat (limited to 'build.sc')
-rw-r--r--build.sc46
1 files changed, 46 insertions, 0 deletions
diff --git a/build.sc b/build.sc
new file mode 100644
index 0000000..69cc6f7
--- /dev/null
+++ b/build.sc
@@ -0,0 +1,46 @@
+import mill._
+import mill.scalalib._
+import scalafmt._
+
+object server extends ScalaModule with ScalafmtModule {
+ def scalaVersion = "2.13.5"
+
+ def scalacOptions = Seq(
+ // features
+ "-encoding", "utf-8",
+ "-explaintypes",
+ "-language:higherKinds",
+ // warnings
+ "-deprecation",
+ "-Xlint:unused",
+ "-unchecked",
+ )
+
+ def ivyDeps = Agg(
+ ivy"com.github.pureconfig::pureconfig:0.14.0",
+ ivy"com.monovore::decline:1.3.0",
+ ivy"org.log4s::log4s:1.8.2",
+ ivy"ch.qos.logback:logback-classic:1.2.3",
+ ivy"com.typesafe.akka::akka-stream:2.6.12",
+ ivy"org.bouncycastle:bcprov-jdk15to18:1.68"
+ )
+
+ override def compile = T {
+ reformat().apply()
+ super.compile()
+ }
+
+ object test extends Tests with ScalafmtModule {
+ def ivyDeps = Agg(ivy"org.scalatest::scalatest:3.2.2")
+ def testFrameworks = Seq("org.scalatest.tools.Framework")
+
+ override def compile = T {
+ reformat().apply()
+ super.compile()
+ }
+
+ def testOnly(args: String*) = T.command {
+ super.runMain("org.scalatest.run", args: _*)
+ }
+ }
+}