-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sbt
35 lines (32 loc) · 1.25 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
32
33
34
35
val scala3Version = "3.3.4" // = dottyLatestNightlyBuild.get
lazy val root = project
.in(file("."))
.settings(
name := "enum-Planet",
description := "sbt example project to build/run Scala 3 applications",
version := "1.0.0",
scalaVersion := scala3Version,
scalacOptions ++= Seq(
"-deprecation",
"-encoding",
"UTF-8",
"-feature"
),
// resolvers += "Maven Central Server" at "http://central.maven.org/maven2",
libraryDependencies ++= Seq(
// https://mvnrepository.com/artifact/com.github.sbt/junit-interface
"com.github.sbt" % "junit-interface" % "0.13.3" % Test,
// https://mvnrepository.com/artifact/org.scalacheck/scalacheck
"org.scalacheck" %% "scalacheck" % "1.18.0" % Test,
// https://mvnrepository.com/artifact/org.scalatest/scalatest
"org.scalatest" %% "scalatest" % "3.2.19" % Test
),
testOptions ++= Seq(
Tests.Setup(() => println("Setup JUnit tests")),
Tests.Cleanup(() => println("Cleanup JUnit tests")),
Tests.Filter(s => s.endsWith("Test"))
),
// receive periodic notifications of tests that have been running longer than 120 seconds
Test / testOptions += Tests
.Argument(TestFrameworks.ScalaTest, "-W", "120", "60")
)