-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Consider adding src/main/resources to native image #2746
Comments
src/main/resources
to native image
@geoand Could you give an example on how to add a resource using I'm using Quarkus 0.18.0 with GraalVM ce-1.0.0-rc16. I added a file called version.txt to the My build plugins configuration looks like this:
(I also tried Can you spot what I am doing wrong? Do you have a complete example I can have a look at? |
Hello @ChristianHuff-DEV, I would advise you to take a look at my comment here. Simply adding Also keep in mind that for Quarkus |
Thank you @geoand, |
Glad to hear it! |
The principle of least surprise says that all of |
Quarkus: 0.21.1 I found that resources inside
does not. I noticed this message Also, if I use the same build arguments directly in a small app and compile it directly, it does work. Now, I will place my files in |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you! |
This comment has been minimized.
This comment has been minimized.
If someone else falls on this thread and wonder why |
I'll close this as there hasn't been a huge need for it |
Description
It seems to come up somewhat often that application developers want to include the contents of
src/main/resources
into their native image.Currently we don't provide an easy way of doing that, other making the user add
additionalBuildArgs
.This has been discussed before in #388, but I believe that this need is not limited to extension authors only (see for example this discussion, or envision a scenario were a use developing a Kafka application wants to read from Twitter and includes
twitter4j.properties
).Implementation ideas
My idea would be to follow the everything configured via
application.properties
paradigm. We could provide some properties that the user could set which would then be easily processed by by a processor to generate the necessarySubstrateResourceBuildItem
.The text was updated successfully, but these errors were encountered: