-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
43 lines (34 loc) · 868 Bytes
/
Copy pathbuild.gradle.kts
File metadata and controls
43 lines (34 loc) · 868 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
plugins {
java
antlr
scala
}
group = "com.github.tammo"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
antlr("org.antlr", "antlr4", "4.9.3")
implementation("org.ow2.asm:asm:9.7.1")
implementation("org.scala-lang:scala3-library_3:3.6.2")
testImplementation("org.scalatest:scalatest_3:3.2.19")
testImplementation("org.scalatestplus:junit-5-11_3:3.2.19.0")
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
tasks.test {
useJUnitPlatform {
includeEngines("scalatest")
testLogging {
events("passed", "skipped", "failed")
}
}
}
tasks.generateGrammarSource {
arguments.addAll(listOf("-visitor", "-package", "com.github.tammo"))
outputDirectory = file("${project.buildDir}/generated-src/antlr/main/com/github/tammo")
}