Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reachability-metadata.json to all Log4j modules #3053

Merged
merged 6 commits into from
Oct 4, 2024

Commits on Oct 3, 2024

  1. 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.
    ppkarwasz committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    2048b2b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d58894f View commit details
    Browse the repository at this point in the history
  3. Apply review suggestions

    ppkarwasz committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    0717df6 View commit details
    Browse the repository at this point in the history
  4. Simplify ReachabilityMetadata

    Simplifies `ReachabilityMetadata` and fixes unclosed resource.
    ppkarwasz committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    0537fae View commit details
    Browse the repository at this point in the history
  5. Add resource-config.json to log4j-api

    Add a GraalVM metadata file to include the following 3 files into an executable:
    
    * `log4j2.component.properties`,
    * `log4j2.simplelog.properties`,
    * `log4j2.StatusLogger.properties`
    ppkarwasz committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    79909ea View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d25e0e6 View commit details
    Browse the repository at this point in the history