Commit 6f28560
committed
feat: jpms support
- feat: add `module-info.java` descriptor
- fix!: update annotation package path to `o.a.v.annotations.*`
- chore: upgrade all maven plugins to latest
- chore: centralize maven plugin versions
- chore: centralize dependency versions
- chore: refactor build to fix dependency on old plugin version
This changeset introduces support for the Java Platform Module
System, or JPMS, within the ANTLR v4 runtime and annotations
packages.
The runtime package can now be depended on in downstream modules
with a `requires antlr.runtime` directive.
To facilitate this functionality, a breaking change had to be made
with regard to packages used for annotations. The following package
changes were made:
- `o.a.v.misc.NotNull` → `org.antlr.v4.annotations.NotNull`
- `o.a.v.misc.Nullable` → `org.antlr.v4.annotations.Nullable`
- `o.a.v.r.NullUsageProcessor` → `...processors.NullUsageProcessor`
Code generators, service definitions, and other references to these
classes were updated accordingly. This change was made to fix split
package issues between the ANTLR runtime and annotations modules,
which is banned under JPMS.
Additionally, the codebase now uses a bootstrap JAR to facilitate
code-gen in `antlr4-runtime`; this bootstrap JAR is located in the
`lib/` folder and automatically installed for the developer if they
use either `./mvnw` (also added) or `./bootstrap.sh`.
This bootstrap JAR will allow iteration on the code generator
without needing to release a new plugin version.
Signed-off-by: Sam Gammon <[email protected]>1 parent 1de7b24 commit 6f28560
File tree
162 files changed
+1373
-365
lines changed- .mvn/wrapper
- antlr4-maven-plugin
- src/main/java/org/antlr/mojo/antlr4
- antlr4-testgen-maven-plugin
- lib
- perf-testsuite
- runtime-testsuite
- runtime
- JavaAnnotations
- resources/META-INF/services
- src
- org/antlr/v4/runtime
- annotations
- processors
- Java
- src
- org/antlr/v4/runtime
- atn
- dfa
- misc
- tree
- pattern
- tool
- resources/org/antlr/v4/tool/templates/codegen/Java
- src/org/antlr/v4
- analysis
- automata
- codegen
- model
- gui
- parse
- semantics
- tool
- ast
- test/org/antlr/v4/test/tool
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
162 files changed
+1373
-365
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
58 | | - | |
59 | 57 | | |
60 | 58 | | |
61 | 59 | | |
62 | 60 | | |
63 | 61 | | |
64 | | - | |
65 | 62 | | |
66 | 63 | | |
67 | 64 | | |
| |||
79 | 76 | | |
80 | 77 | | |
81 | 78 | | |
82 | | - | |
83 | 79 | | |
84 | 80 | | |
85 | | - | |
86 | 81 | | |
87 | | - | |
88 | 82 | | |
89 | 83 | | |
90 | 84 | | |
91 | 85 | | |
92 | 86 | | |
93 | | - | |
94 | 87 | | |
95 | 88 | | |
96 | 89 | | |
97 | 90 | | |
98 | 91 | | |
99 | 92 | | |
100 | | - | |
101 | 93 | | |
102 | 94 | | |
103 | 95 | | |
104 | 96 | | |
105 | 97 | | |
106 | 98 | | |
107 | | - | |
108 | 99 | | |
109 | 100 | | |
110 | 101 | | |
111 | 102 | | |
112 | 103 | | |
113 | 104 | | |
114 | | - | |
115 | | - | |
| 105 | + | |
116 | 106 | | |
117 | 107 | | |
118 | 108 | | |
119 | 109 | | |
120 | 110 | | |
121 | 111 | | |
122 | | - | |
| 112 | + | |
123 | 113 | | |
124 | 114 | | |
125 | 115 | | |
126 | 116 | | |
127 | 117 | | |
128 | 118 | | |
129 | 119 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | 120 | | |
134 | 121 | | |
135 | 122 | | |
136 | 123 | | |
137 | 124 | | |
138 | 125 | | |
139 | 126 | | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | 127 | | |
144 | 128 | | |
145 | 129 | | |
146 | 130 | | |
147 | 131 | | |
148 | | - | |
| 132 | + | |
149 | 133 | | |
150 | 134 | | |
151 | 135 | | |
| |||
184 | 168 | | |
185 | 169 | | |
186 | 170 | | |
187 | | - | |
188 | 171 | | |
189 | 172 | | |
190 | 173 | | |
| |||
208 | 191 | | |
209 | 192 | | |
210 | 193 | | |
211 | | - | |
212 | 194 | | |
213 | 195 | | |
214 | 196 | | |
215 | 197 | | |
216 | 198 | | |
217 | | - | |
218 | 199 | | |
219 | 200 | | |
220 | 201 | | |
| |||
229 | 210 | | |
230 | 211 | | |
231 | 212 | | |
232 | | - | |
233 | 213 | | |
234 | 214 | | |
235 | 215 | | |
236 | 216 | | |
237 | 217 | | |
238 | | - | |
239 | 218 | | |
240 | 219 | | |
241 | 220 | | |
| |||
244 | 223 | | |
245 | 224 | | |
246 | 225 | | |
247 | | - | |
248 | 226 | | |
249 | 227 | | |
250 | 228 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
| 47 | + | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
54 | | - | |
| 53 | + | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
60 | | - | |
61 | 59 | | |
62 | 60 | | |
63 | 61 | | |
64 | 62 | | |
65 | 63 | | |
66 | | - | |
67 | 64 | | |
68 | 65 | | |
69 | 66 | | |
70 | 67 | | |
71 | 68 | | |
72 | | - | |
73 | 69 | | |
74 | 70 | | |
75 | 71 | | |
| |||
84 | 80 | | |
85 | 81 | | |
86 | 82 | | |
87 | | - | |
88 | 83 | | |
89 | 84 | | |
90 | 85 | | |
91 | 86 | | |
92 | 87 | | |
93 | 88 | | |
94 | | - | |
95 | 89 | | |
96 | 90 | | |
97 | 91 | | |
98 | 92 | | |
99 | 93 | | |
100 | 94 | | |
101 | | - | |
102 | 95 | | |
103 | 96 | | |
104 | 97 | | |
| |||
118 | 111 | | |
119 | 112 | | |
120 | 113 | | |
121 | | - | |
122 | 114 | | |
123 | 115 | | |
124 | 116 | | |
| |||
142 | 134 | | |
143 | 135 | | |
144 | 136 | | |
145 | | - | |
146 | 137 | | |
147 | 138 | | |
148 | 139 | | |
149 | 140 | | |
150 | 141 | | |
151 | | - | |
152 | 142 | | |
153 | 143 | | |
154 | 144 | | |
| |||
163 | 153 | | |
164 | 154 | | |
165 | 155 | | |
166 | | - | |
167 | 156 | | |
168 | 157 | | |
169 | 158 | | |
170 | 159 | | |
171 | 160 | | |
172 | | - | |
173 | 161 | | |
174 | 162 | | |
175 | 163 | | |
| |||
178 | 166 | | |
179 | 167 | | |
180 | 168 | | |
181 | | - | |
182 | 169 | | |
183 | 170 | | |
184 | 171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
Binary file not shown.
Binary file not shown.
0 commit comments