Skip to content

Commit 9fb3548

Browse files
.gitlab-ci.yml: set file.encoding=UTF-8.
1 parent 76596ab commit 9fb3548

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ variables:
1515
# Disable the Gradle daemon. Gradle may run in a Docker container with a shared
1616
# Docker volume containing GRADLE_USER_HOME. If the container is stopped after a job
1717
# Gradle daemons may get killed, preventing proper clean-up of lock files in GRADLE_USER_HOME.
18-
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
18+
# Configure file.encoding to always use UTF-8 when running Gradle.
19+
GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dfile.encoding=UTF-8"
1920
GITLAB_REPO_ARGS: "-PgitlabUrl=$CI_SERVER_URL -PgitlabTokenName=Job-Token -PgitlabPrivateToken=$CI_JOB_TOKEN"
2021
CENTRAL_REPO_ARGS: "-PsonatypeUsername=$SONATYPE_USER -PsonatypePassword=$SONATYPE_PWD"
2122
# CI_COMMIT_REF_SLUG is the branch or tag name, but web-safe (only 0-9, a-z)

0 commit comments

Comments
 (0)