-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
84 lines (62 loc) · 2.19 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
plugins {
id 'java'
id 'antlr'
id 'com.github.sherter.google-java-format' version '0.8'
id 'idea'
id 'eclipse'
id 'org.unbroken-dome.test-sets' version '2.0.3'
id 'application'
}
repositories {
jcenter()
}
sourceCompatibility = 10
targetCompatibility = 10
testSets {
integrationTest
}
dependencies {
antlr 'org.antlr:antlr4:4.7.1'
compileOnly 'org.projectlombok:lombok:1.18.4'
annotationProcessor 'org.projectlombok:lombok:1.18.4'
implementation 'org.ow2.asm:asm:7.0'
implementation 'org.ow2.asm:asm-util:7.0'
implementation 'com.beust:jcommander:1.72'
implementation 'org.apache.logging.log4j:log4j-core:2.11.2'
runtimeOnly 'org.fusesource.jansi:jansi:1.17.1'
runtimeOnly 'com.fasterxml.jackson.core:jackson-databind:2.9.7'
runtimeOnly 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.7'
testCompileOnly 'org.projectlombok:lombok:1.18.4'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.4'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.3.1'
testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.9.7'
testImplementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.7'
testImplementation 'org.skyscreamer:jsonassert:1.5.0'
testImplementation 'com.google.guava:guava:27.0-jre'
integrationTestImplementation sourceSets.test.output
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
}
generateGrammarSource {
arguments += ['-no-listener', '-package', 'com.github.agmcc.slate.antlr']
outputDirectory = new File("$buildDir/generated-src/antlr/main/com/github/agmcc/slate/antlr")
}
task format {
dependsOn ':googleJavaFormat'
group 'build'
description 'Google Java Format'
}
tasks.withType(Test) {
useJUnitPlatform()
testLogging {
events 'failed', 'standard_error'
exceptionFormat = 'full'
}
}
check.dependsOn integrationTest
integrationTest.mustRunAfter(test)
application {
mainClassName 'com.github.agmcc.slate.cli.SlateCli'
applicationName 'slatec'
applicationDefaultJvmArgs = ['-Dlog4j.skipJansi=false']
}