-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
42 lines (34 loc) · 871 Bytes
/
build.gradle.kts
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.6.0"
antlr
id("com.github.johnrengelman.shadow") version "6.1.0"
}
group = "com.github.furetur"
version = "0.1"
repositories {
mavenCentral()
}
dependencies {
antlr("org.antlr:antlr4:4.9.3")
implementation("com.github.ajalt.clikt:clikt:3.2.0")
testImplementation(kotlin("test"))
}
tasks.test {
useJUnit()
}
tasks.withType<KotlinCompile>() {
dependsOn("generateGrammarSource")
kotlinOptions.jvmTarget = "1.8"
}
tasks.generateGrammarSource {
maxHeapSize = "64m"
arguments = arguments + listOf("-visitor")
}
tasks.named<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>("shadowJar") {
mergeServiceFiles()
manifest {
attributes["Main-Class"] = "MainKt"
}
archiveFileName.set("llkchecker.jar")
}