-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
78 lines (63 loc) · 1.57 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
plugins {
id 'application'
id 'java'
id 'checkstyle'
id 'antlr'
}
group 'com.bramdekker'
version '1.0-SNAPSHOT'
mainClassName = 'com.bramdekker.main.Main'
sourceCompatibility = 17
targetCompatibility = 17
configurations {
compile {
extendsFrom = extendsFrom.findAll { it != configurations.antlr }
}
}
repositories {
mavenCentral()
}
sourceSets {
main {
java.srcDirs += "${project.buildDir}/generated-src"
}
}
jar {
manifest {
attributes(
'Main-Class': 'com.bramdekker.main.Main'
)
}
}
dependencies {
antlr "org.antlr:antlr4:4.10.1"
implementation 'org.antlr:antlr4:4.10.1'
implementation group: 'org.jgrapht', name: 'jgrapht-core', version: '1.5.1'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
}
test {
useJUnitPlatform()
}
checkstyle {
toolVersion '10.2'
configFile file("${project.rootDir}/config/checkstyle/checkstyle.xml")
configProperties.checkstyleSuppressionsPath = file("${project.rootDir}/config/checkstyle/suppressions.xml").absolutePath
}
checkstyleMain {
source ='src/main/java'
}
checkstyleTest {
source='src/test/java'
}
generateGrammarSource {
doFirst {
copy {
from "src/main/antlr/HaskellBaseLexer.java"
into "${project.buildDir}/generated-src/antlr"
}
}
arguments += ["-package", "antlr", "-visitor"]
maxHeapSize = "64m"
outputDirectory = new File("${project.buildDir}/generated-src/antlr".toString())
}