-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
41 lines (33 loc) · 999 Bytes
/
build.gradle
File metadata and controls
41 lines (33 loc) · 999 Bytes
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
buildscript {
ext.kotlin_version = '1.2.50'
ext.antlr_version = '4.7.1'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'kotlin'
apply plugin: 'antlr'
group 'com.scorsi'
version '0.1'
repositories {
mavenCentral()
}
dependencies {
antlr group: 'org.antlr', name: 'antlr4', version: "$antlr_version"
compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: "$kotlin_version"
compile group: 'org.antlr', name: 'antlr4-runtime', version: "$antlr_version"
}
generateGrammarSource {
outputDirectory = new File("${project.buildDir}/generated-src/antlr/main/com/scorsi/breeze/parser".toString())
arguments += ["-visitor", "-no-listener", "-package", "com.scorsi.breeze.parser"]
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
dependsOn(generateGrammarSource)
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}