-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
46 lines (37 loc) · 1.05 KB
/
build.gradle.kts
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
plugins {
id("com.github.johnrengelman.shadow") version "7.1.2"
java
antlr
}
group = "com.soarex.truffle.lama"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
val graalvmVersion: String by project
val antlrVersion: String by project
annotationProcessor("org.graalvm.truffle", "truffle-dsl-processor", graalvmVersion)
implementation("org.graalvm.truffle", "truffle-api", graalvmVersion)
antlr("org.antlr", "antlr4", antlrVersion)
testImplementation(platform("org.junit:junit-bom:5.9.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks.generateGrammarSource {
maxHeapSize = "64m"
arguments = arguments + listOf("-no-listener", "-visitor", "-long-messages")
}
tasks.test {
useJUnitPlatform()
val patchArgs = listOf(
"-ea",
"-Dgraalvm.locatorDisabled=true",
"-Dgraal.Dump=:1",
"-Dgraal.PrintGraph=Network"
)
jvmArgs(patchArgs)
}