Skip to content

Commit 8e2e9e4

Browse files
committed
Replace --console=plain with -Dorg.gradle.console=plain
gradleSetupHook now includes `--console plain`: NixOS/nixpkgs@c12b2a0 Gradle errors when `--console` is passed twice: gradle/gradle#30913 This means that, before this commit, `buildGradleApplication` could not run successfully with nixpkgs revisions which include the linked commit. `-D` property flags are merged with each other, with properties set in a file, and also with the `--console` flag, so after this commit, the function can be used with nixpkgs both before and after the linked commit, with the desired behavior: using a "plain" console.
1 parent 64297c9 commit 8e2e9e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildGradleApplication/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
export APP_VERSION=${version}
7676
7777
# built the dam thing!
78-
gradle --offline --no-daemon --no-watch-fs --no-configuration-cache --no-build-cache --console=plain --no-scan -Porg.gradle.java.installations.auto-download=false --init-script ${./init.gradle.kts} ${buildTask}
78+
gradle --offline --no-daemon --no-watch-fs --no-configuration-cache --no-build-cache -Dorg.gradle.console=plain --no-scan -Porg.gradle.java.installations.auto-download=false --init-script ${./init.gradle.kts} ${buildTask}
7979
8080
runHook postBuild
8181
'';

0 commit comments

Comments
 (0)