-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
93 lines (84 loc) · 2.12 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
import Dependencies._
lazy val scala212 = "2.12.15"
lazy val scala213 = "2.13.8"
lazy val scala3 = "3.1.2"
lazy val scala212And213 = Seq(scala212, scala213)
lazy val semantic = project
.in(file("semantic"))
lazy val syntactic = project
.in(file("syntactic"))
.settings(
crossScalaVersions := scala212And213,
libraryDependencies ++= Seq(
scalameta,
junit,
junitInterface
)
)
lazy val featuresSetComputer = project
.in(file("features-set-computer"))
.settings(
moduleName := "features-set-computer",
crossScalaVersions := scala212And213,
libraryDependencies ++= Seq(
scalameta,
junit,
junitInterface
)
)
.dependsOn(syntactic)
lazy val functionalConverter = project
.in(file("functional-converter"))
.settings(
moduleName := "functional-converter",
crossScalaVersions := scala212And213,
libraryDependencies ++= Seq(
scalameta,
junit,
junitInterface
)
)
.dependsOn(syntactic)
lazy val sbtPlugin = project
.in(file("sbt-plugin"))
.enablePlugins(SbtPlugin)
.settings(
name := "sbt-language-features",
// For scripted tests
scriptedLaunchOpts := { scriptedLaunchOpts.value ++
Seq("-Xmx1024M", "-Dplugin.version=" + version.value)
},
scriptedBufferLog := false
)
.dependsOn(syntactic, featuresSetComputer)
lazy val testkit = project
.in(file("testkit"))
.settings(
crossScalaVersions := scala212And213,
libraryDependencies ++= Seq(
scalameta,
scalaParserCombinators
)
)
lazy val testsInput = project
.in(file("tests/input"))
.settings(
crossScalaVersions := scala212And213,
)
lazy val testsUnit = project
.in(file("tests/unit"))
.settings(
crossScalaVersions := scala212And213,
libraryDependencies += munit,
Compile / compile / compileInputs := {
(Compile / compile / compileInputs)
.dependsOn(testsInput / Compile / compile)
.value
},
fork := true,
javaOptions += {
val testsInputProduct = (testsInput / Compile / scalaSource).value
s"-Dtests-input=$testsInputProduct"
}
)
.dependsOn(syntactic, testkit)