-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sc
More file actions
28 lines (22 loc) · 800 Bytes
/
build.sc
File metadata and controls
28 lines (22 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import $ivy.`io.github.davidgregory084::mill-tpolecat:0.2.0`
import mill._
import mill.scalalib._
import mill.scalalib.scalafmt._
import io.github.davidgregory084.TpolecatModule
import java.time.{ LocalDate, ZoneId }
object adventofcode extends ScalaModule with TpolecatModule with ScalafmtModule {
def scalaVersion = "2.13.7"
def ivyDeps = Agg(
ivy"io.github.bbstilson::aocd:0.1.3"
)
def today: LocalDate = LocalDate.now(ZoneId.of("US/Eastern"))
def thisYear: Int = today.getYear()
def thisDay: Int = today.getDayOfMonth()
def runProblem(y: Int = thisYear, d: Int = thisDay) = T.command {
runMain(s"bbstilson.aoc$y.Day$d")
}
object test extends Tests {
def ivyDeps = Agg(ivy"com.lihaoyi::utest:0.7.2")
def testFrameworks = Seq("utest.runner.Framework")
}
}