Generate a temporary uber-jar in case the target already exists instead of deleting it right away #29150
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, before generating the runner JAR, we are checking if it already exists and deleting it. In case
quarkus.package.add-runner-suffix=false
, the uber-jar file name will (typically) be matching the original JAR name. The issue is that the original JAR is used as a content source for the uber-jar. If the original JAR is deleted before the uber-jar is generated than generated uber-jar won't be usable.