-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
Rendering ${application.version} in a custom banner does not work in 2.3.0 #21647
Comments
@norman-abramovitz Can you provide a minimal sample that we can run to reproduce the issue? It can be a link to a GitHub repository or a zip attached here. |
Hopefully, I chose a good example that shows the issue. The application variables are not coming through. Please be aware I had to do some markdown formatting to get the text below to display correctly. git clone https://github.com/spring-guides/gs-spring-boot.git # create a resources directory and add the application. properties file and banner.txt ESDIR="initial/src/main/resources" cat >${RESDIR}/banner.txt <<-EOF Application Name : \${application.title} cd initial # kill the server after it stops outputting and scroll backward to look at the banner output |
I've tried reproducing this by following your instructions and I'm getting: Spring Boot 2.2.2:
Spring Boot 2.3.0:
I don't see any change in behavior here. Adding the following in the Gradle build: bootJar {
manifest {
attributes('Implementation-Title': project.name, 'Implementation-Version': project.version)
}
} Works for both 2.2.2 and 2.3.0:
Maybe something is missing here? |
I wonder if this one is related to #21705? |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
The issue was caused by changing from maven builds to gradle builds. |
The variable ${application.version} does not render in a customer banner file. The same file works in version 2.2.2.
The application.version and application.title variables aren't being read from META-INF/MANIFEST.MF.
The text was updated successfully, but these errors were encountered: