-
Notifications
You must be signed in to change notification settings - Fork 69
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
JTE Spring Boot properties aren't in dash casing #382
Comments
Hi @mhalbritter, thanks for the feedback, and yes I have no stakes in how the spring properties are named and consistency with the Spring Boot conventions makes a lot of sense. What's the recommended way to make breaking changes like this? For instance, it would be bad if I could think of keeping the old properties and deprecating them for removal and to throw an exception if those are still set? But maybe there is a better way? @atomfrede, @tschuehly would you be ok with this change, too? |
Totally fine. We could print a warning for e.g. 1 release and ignore them in the next (or throw an exception) |
@casid @mhalbritter |
@casid Breaking changes should only be shipped in major releases. We can likely read both versions with the new name having precedence and log a warning if the old name is used? Then drop the old path in the next major. |
I should have mentioned that in the first post, sorry about that. That's no breaking change. Boot itself binds But for the reference, if you ever come to the situation where you need to deprecate some properties: There's a |
Thanks for the update and clarification @mhalbritter. @tschuehly already made the changes, so this will be part of the next release :-) |
Great! Thanks a lot! |
Hello,
i've noticed that the properties in the
spring-configuration-metadata.json
file are in camel case (e.g.gg.jte.usePrecompiledTemplates
).If you take a look at the metadata included in Spring Boot itself, it's dash cased.
Btw, there's a plugin which automatically creates the metadata files from the property files.
Would you be open to change the properties to dash-casing (e.g.
gg.jte.use-precompiled-templates
) for better consistency?The text was updated successfully, but these errors were encountered: