-
I created a project with the following features:
When creating a native image I got the following error: To see how the classes got initialized, use --trace-class-initialization=org.conscrypt.Conscrypt,org.conscrypt.OpenSSLProvider
analysis: 107,698.48 ms, 5.59 GB
Error: Classes that should be initialized at run time got initialized during image building:
org.conscrypt.Conscrypt was unintentionally initialized at build time. To see why org.conscrypt.Conscrypt got initialized use --trace-class-initialization=org.conscrypt.Conscrypt
org.conscrypt.OpenSSLProvider was unintentionally initialized at build time. To see why org.conscrypt.OpenSSLProvider got initialized use --trace-class-initialization=org.conscrypt.OpenSSLProvider Then i made a little research and I found this answer. So adding this dependency <dependency>
<groupId>com.google.cloud</groupId>
<artifactId>native-image-support</artifactId>
<version>0.9.0</version>
</dependency> the native imagen was made well. my question: is it worth adding this dependency to the micronaut project generator? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi I would recommend to create an issue in https://github.com/micronaut-projects/micronaut-gcp first. Micronaut should be native image compatible by default so we need to find out whether this shouldn't be a default dependency. |
Beta Was this translation helpful? Give feedback.
-
Finally added micronaut-projects/micronaut-gcp#682 ! |
Beta Was this translation helpful? Give feedback.
Hi I would recommend to create an issue in https://github.com/micronaut-projects/micronaut-gcp first. Micronaut should be native image compatible by default so we need to find out whether this shouldn't be a default dependency.