forked from QuiltMC/chasm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
66 lines (53 loc) · 1.33 KB
/
build.gradle
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
plugins {
id 'java'
id 'antlr'
id 'checkstyle'
}
group 'org.quiltmc'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
checkstyle {
toolVersion "9.1"
ignoreFailures(false)
}
compileJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
compileTestJava {
sourceCompatibility = 17
targetCompatibility = 17
}
generateGrammarSource {
maxHeapSize = "64m"
arguments += ["-visitor", "-long-messages"]
}
sourceSets {
testData {
java {
srcDirs file("src/testData/java")
compileClasspath = sourceSets.main.output + configurations.testCompileClasspath
runtimeClasspath = sourceSets.main.output + project.configurations.testRuntimeClasspath
}
}
}
compileTestDataJava {
destinationDir = file("src/testData/classes")
sourceCompatibility = 17
targetCompatibility = 17
}
testClasses.dependsOn("testDataClasses")
dependencies {
implementation 'org.ow2.asm:asm:9.2'
antlr 'org.antlr:antlr4:4.9.3'
compileOnly 'org.jetbrains:annotations:23.0.0'
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.1'
testImplementation 'org.ow2.asm:asm-util:9.2'
testImplementation 'com.googlecode.java-diff-utils:diffutils:1.3.0'
testImplementation 'org.reflections:reflections:0.10.2'
}
test {
useJUnitPlatform()
}