-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
59 lines (47 loc) · 1.28 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
import java.nio.file.Files
import java.util.function.Consumer
import java.util.jar.JarOutputStream
import java.util.zip.ZipEntry
import lombok.*;
plugins {
id 'application'
id "io.freefair.lombok" version '6.3.0'
}
group = 'edu.nju.se'
version = '0.0.1'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
maven {
url 'https://maven.aliyun.com/repository/public/'
}
}
dependencies {
implementation 'org.apache.commons:commons-lang3:3.12.0'
implementation 'org.apache.commons:commons-text:1.9'
implementation 'info.picocli:picocli:4.6.2'
implementation 'org.jline:jline-reader:3.21.0'
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.2'
annotationProcessor 'info.picocli:picocli-codegen:4.6.2'
}
compileJava {
options.compilerArgs += ["-Aproject=${project.group}/${project.name}"]
}
application {
mainClass = 'vjvm.vm.Main'
}
jar {
manifest {
attributes 'Main-Class': 'vjvm.vm.Main'
}
duplicatesStrategy('exclude')
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
test {
environment 'VJVM_TESTRES_PATH', "$projectDir/testdata/build/"
environment 'VJVM_TESTRESULT_PATH', "$projectDir/testdata/dump/"
environment 'VJVM_TESTINPUT_PATH', "$projectDir/testdata/input/"
useJUnitPlatform()
}