-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
107 lines (83 loc) · 2.79 KB
/
build.gradle
File metadata and controls
107 lines (83 loc) · 2.79 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/*
* This file was generated by the Gradle 'init' task.
*
* This is a general purpose Gradle build.
* Learn more about Gradle by exploring our samples at https://docs.gradle.org/6.8.2/samples
*/
plugins {
// Apply the java-library plugin to add support for Java Library
id 'java'
id 'eclipse'
id 'antlr'
id 'com.github.johnrengelman.shadow' version '7.0.0'
}
repositories {
// Use jcenter for resolving dependencies.
// You can declare any Maven/Ivy/file repository here.
mavenCentral()
}
sourceSets {
main {
java {
srcDirs = ['Protos/src']
}
antlr {
srcDirs = ['Protos/antlr']
}
resources {
srcDirs = ['Protos/resources']
}
}
test {
java {
srcDirs = ["Protos/tests"]
}
resources {
srcDirs = ["Protos/resources"]
}
}
}
dependencies {
// Use JUnit Jupiter API for testing.
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.2'
// Use JUnit Jupiter Engine for testing.
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
// for antlr parser
antlr "org.antlr:antlr4:4.5"
// Apache commons
implementation group: 'commons-io', name: 'commons-io', version: '2.4'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
implementation group: 'commons-cli', name: 'commons-cli', version: '1.4'
implementation group: 'org.apache.commons', name: 'commons-collections4', version: '4.0'
// log4j2
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.14.0'
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.14.0'
implementation group: 'com.fasterxml.jackson.core', name:'jackson-core', version:'2.4.2'
implementation group: 'com.fasterxml.jackson.core', name:'jackson-databind', version:'2.4.2'
implementation group: 'com.fasterxml.jackson.core', name:'jackson-annotations', version:'2.4.2'
// for json
implementation 'com.google.code.gson:gson:2.8.7'
// LMAX disruptor for async logging
implementation 'com.lmax:disruptor:3.4.4'
}
generateGrammarSource {
println "Running generateGrammarSource"
arguments += ['-package', 'thinclab.spuddx_parser', '-visitor']
//outputDirectory = new File("".toString())
outputDirectory = new File("Protos/src/thinclab/spuddx_parser")
}
compileJava.dependsOn generateGrammarSource
test {
// Use junit platform for unit tests.
useJUnitPlatform()
testLogging.showStandardStreams = true
testLogging.exceptionFormat = 'full'
}
jar {
manifest {
attributes "Main-Class" : "thinclab.executables.ProtosLauncher"
}
from {
configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}