-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
reachability-metadata.json
to all Log4j modules (#3053)
* Add `reachability-metadata.json` to all Log4j modules This PR adds a plugin processor that generates a GraalVM reachability metadata file and bundles it with each Log4j module. After this change, GraalVM will be able to handle Log4j Core without any user intervention. **Note**: I also added a static `resource-config.json` file that specifies that all resources starting with `log4j2` and the plugin descriptor must be included in the GraalVM image. This also includes a small change to Log4j API to include in the GraalVM image the following 3 resource: * `log4j2.component.properties`, * `log4j2.simplelog.properties`, * `log4j2.StatusLogger.properties`
- Loading branch information
Showing
12 changed files
with
1,149 additions
and
30 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
...n/resources/META-INF/native-image/org.apache.logging.log4j/log4j-api/resource-config.json
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,9 @@ | ||
{ | ||
"resources": { | ||
"includes": [ | ||
{ | ||
"pattern": "log4j2\\.(component|simplelog|StatusLogger)\\.properties" | ||
} | ||
] | ||
} | ||
} |
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
Oops, something went wrong.