-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
68 lines (57 loc) · 1.54 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
plugins {
id 'application'
id 'antlr'
id 'org.jetbrains.kotlin.jvm' version '1.4.10'
id 'org.jlleitschuh.gradle.ktlint' version '9.4.0'
}
group 'com.mattmik'
version '1.0.1'
repositories {
mavenCentral()
}
application {
mainClassName = 'com.mattmik.rapira.RaptureCommandKt'
}
// Includes LICENSE in distributions built via Application plugin
distributions {
main {
contents {
from "LICENSE" into ""
}
}
}
def antlrOutputDirectory = "src/main/java/com/mattmik/rapira/antlr"
sourceSets.main.antlr.srcDirs = ["src/antlr"]
generateGrammarSource {
arguments += ["-visitor", "-no-listener", "-package", "com.mattmik.rapira.antlr"]
outputDirectory = file(antlrOutputDirectory)
}
ktlint {
version = "0.39.0"
}
dependencies {
def kotest_version = "4.3.1"
antlr "org.antlr:antlr4:4.8"
implementation "com.github.ajalt.clikt:clikt:3.0.1"
testImplementation "org.junit.jupiter:junit-jupiter:5.6.2"
testImplementation "io.kotest:kotest-runner-junit5:$kotest_version"
testImplementation "io.kotest:kotest-assertions-core:$kotest_version"
testImplementation "io.kotest:kotest-property:$kotest_version"
testImplementation "io.mockk:mockk:1.10.0"
}
compileKotlin.dependsOn generateGrammarSource
tasks.test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
clean.doFirst {
delete "${rootDir}/${antlrOutputDirectory}"
}