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
fix: gradle build source set encoding to UTF-8 #4517
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @DaiYuANg , thanks for your contribution!
建议描述一下当前遇到的问题,或者说明需要手动设置 CompileOption的原因。
|
|
个人认为 设置 Compile Option 会更好一点 source code 是 gradle 编译 而不是 IDE |
Hi @DaiYuANg ,如果本地有 Git Bash,可以用它执行一下同样的命令,看看输出是否正常。 |
|
…ject (#4844) #### What type of PR is this? /kind bug /area core #### What this PR does / why we need it: Currently, some Windows developers using GBK as character encoding are unable to build project, please see #4771 for more. Because the source code are using UTF-8 character encoding, the `javadoc`, `compileJava`, `compileTestJava` and `delombok` tasks will use the default character encoding GBK to handle the sources, which prevents the `:api:javadoc` task from running properly. At the same time, we thank to @DaiYuANg for his first proposed solution in #4517. #### Which issue(s) this PR fixes: Fixes #4771 #### Special notes for your reviewer: Validate the result by executing command `./gradlew clean build -x check` on Windows environment. #### Does this PR introduce a user-facing change? ```release-note 修复在部分 Windows 开发者无法正常构建 Halo 的问题 ```
What type of PR is this?
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?