-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
46 lines (39 loc) · 1.05 KB
/
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
43
44
45
46
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.6.0"
antlr
}
group = "me.qaz"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
testImplementation(kotlin("test"))
implementation(files(
// Get the jar at https://github.com/QazCetelic/Neatlin/releases
"$projectDir/../../Kotlin/Neatlin/build/libs/Neatlin-jvm-0.3.3.jar",
// Get the jar at https://github.com/QazCetelic/Kwing/releases
"$projectDir/../../JSwing/Kwing/build/libs/Kwing-0.1.0.jar"
))
antlr("org.antlr:antlr4:4.9.3")
implementation(kotlin("stdlib-jdk8"))
}
tasks.generateGrammarSource {
// Allows importing of grammar
arguments.addAll(listOf("-lib", "src/main/antlr/"))
}
tasks.test {
useJUnit()
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "1.8"
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = "1.8"
}
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions {
jvmTarget = "1.8"
}