Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

fix(java): add missing build-time configurations for native-image support #685

Merged
merged 1 commit into from
Jan 25, 2022

Conversation

mpeddada1
Copy link
Contributor

This PR adds some missing configurations for native-image build.

Running mvn test -Pnative locally for googleapis/java-bigquerystorage is resulting in the following error message:

Error: Classes that should be initialized at run time got initialized during image building:
 org.slf4j.LoggerFactory was unintentionally initialized at build time. To see why org.slf4j.LoggerFactory got initialized use --trace-class-initialization=org.slf4j.LoggerFactory

Explicitly initializing org.slf4j.LoggerFactory at image build time addresses this issue.

Reference: https://www.graalvm.org/22.0/reference-manual/native-image/ClassInitialization/

@mpeddada1 mpeddada1 requested a review from a team as a code owner January 24, 2022 16:56
@mpeddada1 mpeddada1 changed the title fix(java): add missing build-time configurations for native-image build fix(java): add missing build-time configurations for native-image support Jan 24, 2022
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants