Closed paulvi closed 9 years ago
Actually all the guides that use the spring-boot-starter-parent already have this set. So this one for sure must have?
Well, I can't comment now. I have not tried spring-boot version since then.
@rwinch Do you know anyway to create something that would embed this encoding? For example, would a tweak to the spring-boot-gradle-plugin be possible to introduce this? /cc @philwebb
Yes you should be able to set the encoding in the Spring Boot Gradle plugin. I haven't really looked at the source of the Spring Boot plugin so I'm not sure exactly how it would be integrated (i.e. I don't know what assumptions the plugin makes which may make setting the property easier/harder). I'm guessing @philwebb would be able to do this fairly quickly since I think he wrote much of the plugin.
I would prefer something more comprehensive than editing each individual build.gradle file, you know?
It looks to me like that change was merged in 1.1.x somewhere, so this is now working in Maven and Gradle.
Thank you for great work on guides.
Most of guides build do not have source encoding set:
for maven
and for gradle
[ compileJava, compileTestJava ]*.options*.encoding = 'UTF-8'
http://www.romseysoftware.co.uk/2012/03/12/gradle-and-utf-8/