-
Notifications
You must be signed in to change notification settings - Fork 40.9k
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
Document that application.* banner variables require a packaged jar or the use of Boot's launcher #33489
Comments
I can't reproduce this:
with
Do you have a small sample application with which i can reproduce the problem? |
With a regular executable JAR build there is no need to set these variables in |
Ah yes, you are right. They are read from the |
Hm, unfortunately it isn't as easy as first thought. The entries which are used in the banner are written by the tasks.named("bootJar") {
manifest {
attributes(
'Implementation-Title': 'myapp',
'Implementation-Version': '1.0.0-SNAPSHOT'
)
}
} When compiling the native image, we don't use the JAR, we provide the classpath to native-image. Therefore there is no Manifest which contains these entries which we could just register resource hints for. Even at AOT processing time, the banner looks wrong:
because the manifest is not yet written. |
I suspect the same problem exists with |
Yes, you're right Andy.
|
The docs already have a note about this for |
With a following custom
banner.txt
file insrc/main/resources
:When application is built to a native image, printed banner has placeholders resolved to empty strings:
Where the expected output is:
The text was updated successfully, but these errors were encountered: