-
Notifications
You must be signed in to change notification settings - Fork 104
/
build.gradle
77 lines (63 loc) · 1.57 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
69
70
71
72
73
74
75
76
77
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id "org.jetbrains.intellij" version "1.17.4"
}
wrapper {
gradleVersion = '7.5'
}
group 'antlr'
version pluginVersion
apply plugin: 'java'
apply plugin: 'org.jetbrains.intellij'
apply plugin: 'antlr'
compileJava {
sourceCompatibility = '17'
targetCompatibility = '17'
}
intellij {
version = ideaVersion
pluginName = 'antlr-intellij-plugin-v4'
downloadSources = true
updateSinceUntilBuild = true
patchPluginXml {
sinceBuild = sinceBuildVersion
untilBuild = untilBuildVersion
}
}
repositories {
mavenCentral()
mavenLocal()
maven { // Gets snapshots of antlr if needed
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
antlr("org.antlr:antlr4:$antlr4Version") { // use ANTLR version 4
exclude group:'com.ibm.icu', module:'icu4j'
}
implementation "org.antlr:antlr4-intellij-adaptor:0.1"
implementation group: 'org.jfree', name: 'org.jfree.svg', version: '5.0.6'
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '5.14.1'
}
generateGrammarSource {
include("**/ANTLRv4*.g4")
arguments += [
"-package", "org.antlr.intellij.plugin.parser",
"-lib", "src/main/antlr/org/antlr/intellij/plugin/parser",
"-Xexact-output-dir"
]
}
test {
testLogging {
events "failed"
exceptionFormat "full"
}
}
runIde {
jvmArgs '-Xmx8G'
}