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

Implement an 'addins' feature to copy in files to the root of the springboot jar #160

Closed
plaird opened this issue Jan 28, 2023 · 0 comments
Assignees

Comments

@plaird
Copy link
Contributor

plaird commented Jan 28, 2023

There is an Salesforce internal use case that asks for a static file to be copied into the root of the springboot jar. It is not important what the use case is. Assume it is a license file, but it could be anything.

Add an attribute to the springboot rule such that a list of files (or a filegroup) can be specified.

addins = [":info.txt", ":author.txt"],

Such that they appear in the generated springboot jar:

jar -tvf bazel-bin/examples/demoapp/demoapp.jar | grep .txt
   132 Fri Jan 01 00:00:00 PST 2010 info.txt
    11 Fri Jan 01 00:00:00 PST 2010 author.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant