-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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]>
- Loading branch information
Showing
162 changed files
with
1,373 additions
and
365 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,4 +29,5 @@ nbactions*.xml | |
# Playground | ||
#/tool/playground/ | ||
|
||
.vscode/ | ||
.vscode/ | ||
.boot |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
distributionUrl=https://maven.pkg.st/org/apache/maven/apache-maven/3.9.6/apache-maven-3.9.6-bin.zip | ||
wrapperUrl=https://maven.pkg.st/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
VERSION="4.10.0-BOOTSTRAP" | ||
|
||
echo "Installing boostrap runtime JAR..."; | ||
mvn install:install-file \ | ||
-Dfile="./lib/antlr4-bootstrap.jar" \ | ||
-DgroupId="com.tunnelvisionlabs" \ | ||
-DartifactId="antlr4-runtime" \ | ||
-Dversion="$VERSION" \ | ||
-Dpackaging=jar | ||
|
||
echo "Installing boostrap Maven plugin JAR..."; | ||
mvn install:install-file \ | ||
-Dfile="./lib/antlr4-bootstrap-maven-plugin.jar" \ | ||
-DgroupId="com.tunnelvisionlabs" \ | ||
-DartifactId="antlr4-maven-plugin" \ | ||
-Dversion="$VERSION" \ | ||
-Dpackaging=jar |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.