Using the latest version of Spring Boot (3.5.4) and the bootBuildImage Gradle task, the application fails to start when it contains classes with Norwegian characters, such as HelloWørld.kt. This only happens when runnning the application via the image generated by that task in Docker, not when running the executable jar or via the bootrun task. A minimal application to reproduce can be found here This could be a Paketo-bug, please advise if this should be reported there instead.
Comment From: scottfrederick
The base OS image used by Paketo buildpacks does not include all the locales you might need to properly encode files with Norwegian characters like this. There is a StackOverflow post on this subject. The post is fairly old now, but shows a few techniques that might help you.
Comment From: jan-olaveide
The whole purpose of this exercise is to avoid having to maintain a Dockerfile, so building a new base image is a no-go in my opinion.
environment.put("BPE_LANG","no_NO.UTF-8") did not work, neither did any of the other suggestions, but closing this since it is not Boot-related