-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
38 lines (26 loc) · 1.44 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
36
37
38
name := "project-1"
version := "0.1"
scalaVersion := "2.13.4"
val skeletonVersion = "2022.1.0"
val calciteVersion = "1.26.0"
ThisBuild / useCoursier := false
resolvers += Resolver.jcenterRepo
resolvers += "gitlab-maven" at "https://gitlab.epfl.ch/api/v4/projects/5928/packages/maven"
initialize := {
val _ = initialize.value // run the previous initialization
val required = VersionNumber("10")
val current = VersionNumber(sys.props("java.specification.version"))
assert(current.matchesSemVer(SemanticSelector(">=10")), s"Unsupported JDK: java.specification.version $current < $required")
}
// https://mvnrepository.com/artifact/org.apache.calcite/calcite-core
// Include Calcite Core
libraryDependencies += "org.apache.calcite" % "calcite-core" % calciteVersion
libraryDependencies += "ch.epfl.dias.cs422" %% "base" % skeletonVersion
libraryDependencies += "ch.epfl.dias.cs422" %% "base" % skeletonVersion % Test classifier "tests"
// https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api
libraryDependencies += "org.junit.jupiter" % "junit-jupiter-api" % "5.3.1" % Test
libraryDependencies += "org.junit.jupiter" % "junit-jupiter-params" % "5.3.1" % Test
// junit tests (invoke with `sbt test`)
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % "test"
libraryDependencies += "net.aichler" % "jupiter-interface" % JupiterKeys.jupiterVersion.value % Test
testOptions += Tests.Argument(jupiterTestFramework, "-q")