We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please check the User Guide before submitting "how do I do 'x'?" questions!
7.1.2
7.6
Building Spring Boot Executable Jar using shadowJar: application.properties should be used when running java -jar abcShadowJar.jar
application.properties is not recognized by Spring Boot application because its in root directory when building using shadowJar.
shadowJar { mergeServiceFiles() zip64 true archiveClassifier.set('standalone') }
jar tf <jar file>
Simple Spring Boot web application
The text was updated successfully, but these errors were encountered:
@propertysource("classpath:application.properties")
Include this in your configuration to force-load application.properties in a shadow jar.
Sorry, something went wrong.
No branches or pull requests
Please check the User Guide before submitting "how do I do 'x'?" questions!
Shadow Version
7.1.2
Gradle Version
7.6
Expected Behavior
Building Spring Boot Executable Jar using shadowJar: application.properties should be used when running java -jar abcShadowJar.jar
Actual Behavior
application.properties is not recognized by Spring Boot application because its in root directory when building using shadowJar.
Gradle Build Script(s)
Content of Shadow JAR (
jar tf <jar file>
- post link to GIST if too long)The text was updated successfully, but these errors were encountered: