generated from wlad031/template-scala-sbt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
31 lines (30 loc) · 1.02 KB
/
build.sbt
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
29
30
31
import Tasks.generateSequencers
val root = project
.in(file("."))
.settings(
scalaVersion := "3.3.1",
organization := "dev.vgerasimov",
name := "slowparse",
version := "0.2.1",
githubOwner := "wlad031",
githubRepository := "slowparse",
publishConfiguration := publishConfiguration.value.withOverwrite(true),
publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(true),
publishM2Configuration := publishM2Configuration.value.withOverwrite(true),
scalacOptions ++= Seq(
"-rewrite",
"-source", "future"
),
libraryDependencies ++= {
val munitVersion = "0.7.29"
Seq(
"org.scalameta" %% "munit" % munitVersion % Test,
"org.scalameta" %% "munit-scalacheck" % munitVersion % Test
)
},
Compile / sourceGenerators += Def.task {
val file = (Compile / sourceManaged).value / "dev" / "vgerasimov" / "slowparse" / "Sequencers.scala"
IO.write(file, generateSequencers(22))
Seq(file)
}.taskValue
)