Skip to content

Commit

Permalink
build: set UTF-8 encoding for Gradle daemon process
Browse files Browse the repository at this point in the history
Passing '-Dfile.encoding=UTF-8' to the Gradle command effectively has
no effect as this only starts a small client process that connects
to a (possibly already running) daemon process. These kind of JVM
options need to be configured in 'gradle.properties' for the Daemon
process.

Signed-off-by: Jendrik Johannes <[email protected]>
  • Loading branch information
jjohannes committed May 23, 2024
1 parent 8b12883 commit 50949d3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/node-zxc-compile-application-code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ jobs:
env:
LC_ALL: en.UTF-8
LANG: en_US.UTF-8
run: ${GRADLE_EXEC} hapiTestMisc -Dfile.encoding=UTF-8 --scan --no-daemon
run: ${GRADLE_EXEC} hapiTestMisc --scan --no-daemon

- name: Publish HAPI Test (Misc) Report
uses: EnricoMi/publish-unit-test-result-action@30eadd5010312f995f0d3b3cff7fe2984f69409e # v2.16.1
Expand Down Expand Up @@ -326,7 +326,7 @@ jobs:
env:
LC_ALL: en.UTF-8
LANG: en_US.UTF-8
run: ${GRADLE_EXEC} hapiTestCrypto -Dfile.encoding=UTF-8 --scan
run: ${GRADLE_EXEC} hapiTestCrypto --scan

- name: Publish HAPI Test (Crypto) Report
uses: EnricoMi/publish-unit-test-result-action@30eadd5010312f995f0d3b3cff7fe2984f69409e # v2.16.1
Expand Down Expand Up @@ -360,7 +360,7 @@ jobs:
env:
LC_ALL: en.UTF-8
LANG: en_US.UTF-8
run: ${GRADLE_EXEC} hapiTestToken -Dfile.encoding=UTF-8 --scan
run: ${GRADLE_EXEC} hapiTestToken --scan

- name: Publish HAPI Test (Token) Report
uses: EnricoMi/publish-unit-test-result-action@30eadd5010312f995f0d3b3cff7fe2984f69409e # v2.16.1
Expand Down Expand Up @@ -394,7 +394,7 @@ jobs:
env:
LC_ALL: en.UTF-8
LANG: en_US.UTF-8
run: ${GRADLE_EXEC} hapiTestSmartContract -Dfile.encoding=UTF-8 --scan
run: ${GRADLE_EXEC} hapiTestSmartContract --scan

- name: Publish HAPI Test (Smart Contract) Report
uses: EnricoMi/publish-unit-test-result-action@30eadd5010312f995f0d3b3cff7fe2984f69409e # v2.16.1
Expand Down Expand Up @@ -428,7 +428,7 @@ jobs:
env:
LC_ALL: en.UTF-8
LANG: en_US.UTF-8
run: ${GRADLE_EXEC} hapiTestTimeConsuming -Dfile.encoding=UTF-8 --scan
run: ${GRADLE_EXEC} hapiTestTimeConsuming --scan

- name: Publish HAPI Test (Time Consuming) Report
uses: EnricoMi/publish-unit-test-result-action@30eadd5010312f995f0d3b3cff7fe2984f69409e # v2.16.1
Expand Down Expand Up @@ -462,7 +462,7 @@ jobs:
env:
LC_ALL: en.UTF-8
LANG: en_US.UTF-8
run: ${GRADLE_EXEC} hapiTestRestart -Dfile.encoding=UTF-8 --scan
run: ${GRADLE_EXEC} hapiTestRestart --scan

- name: Publish HAPI Test (Restart) Report
uses: EnricoMi/publish-unit-test-result-action@30eadd5010312f995f0d3b3cff7fe2984f69409e # v2.16.1
Expand Down Expand Up @@ -497,7 +497,7 @@ jobs:
env:
LC_ALL: en.UTF-8
LANG: en_US.UTF-8
run: ${GRADLE_EXEC} hapiTestNDReconnect -Dfile.encoding=UTF-8 --scan
run: ${GRADLE_EXEC} hapiTestNDReconnect --scan

- name: Publish HAPI Test (Node Death Reconnect) Report
uses: EnricoMi/publish-unit-test-result-action@30eadd5010312f995f0d3b3cff7fe2984f69409e # v2.16.1
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
##

# Need increased heap for running Gradle itself, or SonarQube will run the JVM out of metaspace
org.gradle.jvmargs=-Xmx6144m
org.gradle.jvmargs=-Xmx6144m -Dfile.encoding=UTF-8

# Enable Gradle caching
org.gradle.configuration-cache=true
Expand Down

0 comments on commit 50949d3

Please sign in to comment.