forked from antlr/intellij-plugin-v4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
76 lines (62 loc) · 1.49 KB
/
build.gradle
File metadata and controls
76 lines (62 loc) · 1.49 KB
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
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id "org.jetbrains.intellij" version "1.16.0"
}
wrapper {
gradleVersion = '7.5'
}
group 'antlr'
version pluginVersion
apply plugin: 'java'
apply plugin: 'org.jetbrains.intellij'
apply plugin: 'antlr'
compileJava {
sourceCompatibility = '11'
targetCompatibility = '11'
}
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"
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '5.7.0'
}
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'
}