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 native hints #648

Merged
merged 5 commits into from
Apr 28, 2023
Merged

Commits on Mar 18, 2023

  1. Add native hints

    In order to let any Java project including PebbleTemplates as a
    dependency to be able to build and run a native image using the
    AOT-compiler GraalVM, it is necessary to add native hints to the GraalVM
    so that it can maintain class and variables information during
    compile time (and consequently runtime) to be used as information for
    Reflection, Proxies and other JVM mechanisms.
    
    This will add the necessary TypeHints for the SpringBoot starter only,
    in order to enable the building of a project using Spring Boot as
    framework, and to promote further experiments with other frameworks.
    noblehelm committed Mar 18, 2023
    Configuration menu
    Copy the full SHA
    3ff525e View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2023

  1. Configuration menu
    Copy the full SHA
    2ce4311 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2023

  1. Modify native hints to reflect only the required ones

    Upon tests made based on the native-image.peb resource file, only the
    inner LoopVariable class and the UnaryMinusExpression actually required
    the type hint for the native image generation to work. The rest worked
    out of the box for the spring-boot module.
    noblehelm committed Mar 31, 2023
    Configuration menu
    Copy the full SHA
    de219e5 View commit details
    Browse the repository at this point in the history
  2. Update native-image.peb

    Include missing test examples
    noblehelm committed Mar 31, 2023
    Configuration menu
    Copy the full SHA
    a72f1b5 View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2023

  1. Remove unused imports

    noblehelm committed Apr 3, 2023
    Configuration menu
    Copy the full SHA
    f58c74f View commit details
    Browse the repository at this point in the history