forked from antlr/jetbrains-plugin-st4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
59 lines (49 loc) · 1.2 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
buildscript {
repositories {
jcenter()
mavenCentral()
}
}
plugins {
id "org.jetbrains.intellij" version "0.3.12"
}
apply plugin: 'idea'
apply plugin: 'org.jetbrains.intellij'
apply plugin: 'java'
apply plugin: 'antlr'
intellij {
version = ideaVersion
pluginName 'jetbrains-plugin-st4'
downloadSources true
updateSinceUntilBuild false
}
group 'antlr'
version pluginVersion
wrapper {
gradleVersion = "4.10.3"
}
compileJava {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
sourceSets {
main.java.srcDirs += ['src/gen/java']
main.antlr.includes = ["ST*.g4"]
}
repositories {
mavenCentral()
}
dependencies {
implementation group: 'org.antlr', name: 'antlr4', version: antlr4Version
antlr("org.antlr:antlr4:$antlr4Version") { // use ANTLR version 4
exclude group:'com.ibm.icu', module:'icu4j'
}
testCompile group: 'junit', name: 'junit', version: '4.11'
}
generateGrammarSource {
arguments += ["-package", "org.antlr.jetbrains.st4plugin.parsing","-long-messages","-visitor","-lib","src/main/antlr"]
outputDirectory = file('src/gen/java/org/antlr/jetbrains/st4plugin/parsing')
}
clean {
delete 'src/gen/java'
}