-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
102 lines (81 loc) · 2.5 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.3.31'
id 'application'
id 'antlr'
id "com.github.johnrengelman.shadow" version "4.0.4"
id "org.jetbrains.kotlin.kapt" version "1.3.50"
}
group 'de.ahbnr'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
testImplementation('org.junit.jupiter:junit-jupiter:5.5.0')
testImplementation('org.junit.jupiter:junit-jupiter-api:5.5.0')
testImplementation("org.junit.jupiter:junit-jupiter-params:5.5.0")
testImplementation("org.assertj:assertj-core:3.12.0")
testImplementation("com.zaxxer:nuprocess:1.2.3")
testImplementation("com.pholser:junit-quickcheck:0.9")
testImplementation 'com.pholser:junit-quickcheck-core:0.9'
testImplementation 'com.pholser:junit-quickcheck-generators:0.9'
testRuntime ('org.junit.jupiter:junit-jupiter-engine:5.5.0')
test.useJUnitPlatform() // fix "test events not received" bug in IDEA
//implementation project('abstools')
implementation files('../abstools/frontend/dist/absfrontend.jar')
implementation 'info.picocli:picocli:4.0.0-beta-2'
kapt 'info.picocli:picocli-codegen:4.0.0-beta-2'
implementation group: 'commons-io', name: 'commons-io', version: '2.6'
implementation "com.github.adelnizamutdinov:kotlin-either:2.0.1"
// set antlr version
antlr "org.antlr:antlr4:4.7"
}
kapt {
arguments {
arg("project", "${project.group}/${project.name}")
}
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions {
freeCompilerArgs = ["-XXLanguage:+InlineClasses"]
}
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
application {
mainClassName = 'de.ahbnr.sessiontypeabs.cli.CLI'
}
jar {
manifest {
attributes 'Main-Class': 'de.ahbnr.sessiontypeabs.cli.CLI'
}
}
shadowJar {
minimize()
}
run {
if (project.hasProperty('runArgs')) {
args findProperty('runArgs')
}
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}
// Make ANTLR generated sources available
sourceSets {
main.java.srcDirs += "${project.buildDir}/generated-src/antlr/main"
}
generateGrammarSource {
arguments += ["-visitor", "-package", "de.ahbnr.sessiontypeabs.antlr"]
outputDirectory = file("${project.buildDir}/generated-src/antlr/main/de/ahbnr/sessiontypeabs/antlr")
}
compileKotlin.dependsOn generateGrammarSource