-
Notifications
You must be signed in to change notification settings - Fork 38
/
build.gradle
116 lines (98 loc) · 2.87 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id 'org.jetbrains.intellij' version '1.17.3'
id 'maven-publish'
id 'signing'
id 'antlr'
}
wrapper {
gradleVersion = '8.0.2'
}
group 'org.antlr'
version libraryVersion
apply plugin: 'java'
apply plugin: 'org.jetbrains.intellij'
compileJava {
sourceCompatibility = '17'
targetCompatibility = '17'
}
intellij {
version.set(ideaVersion)
pluginName.set('antlr4-intellij-adaptor')
downloadSources.set(true)
updateSinceUntilBuild.set(false)
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.antlr:antlr4-runtime:$antlr4Version") {
exclude group:'com.ibm.icu', module:'icu4j'
}
antlr "org.antlr:antlr4:$antlr4Version"
}
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
archiveClassifier.set('sources')
dependsOn(':generateGrammarSource')
}
task javadocJar(type: Jar) {
from javadoc
archiveClassifier.set('javadoc')
}
publishing {
publications {
maven(MavenPublication) {
groupId = 'org.antlr'
artifactId = 'antlr4-intellij-adaptor'
version = libraryVersion
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = 'ANTLRV4 adaptor for IntelliJ-based IDEs'
description = 'Support for using ANTLR-generated parsers/lexers in IntelliJ-based IDE plug-ins.'
url = 'https://github.com/antlr/antlr4-intellij-adaptor'
licenses {
license {
name = 'BSD 2-Clause "Simplified" License'
url = 'https://github.com/antlr/antlr4-intellij-adaptor/blob/master/LICENSE'
}
}
developers {
developer {
id = 'parrt'
name = 'Terence Parr'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/antlr/antlr4-intellij-adaptor.git'
developerConnection = 'scm:git:[email protected]:antlr/antlr4-intellij-adaptor.git'
url = 'https://github.com/antlr/antlr4-intellij-adaptor'
}
}
}
}
repositories {
maven {
url "https://oss.sonatype.org/${libraryVersion.contains("-SNAPSHOT") ? 'content/repositories/snapshots' : 'service/local/staging/deploy/maven2'}"
credentials {
username = findProperty("ossrhToken") as String
password = findProperty("ossrhTokenPassword") as String
}
}
}
}
signing {
sign publishing.publications.maven
}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}