Slackbot
05/29/2023, 8:29 PMChris Lee
05/29/2023, 8:36 PM./gradlew
on Windows? On what bash-like shell? (and is that a supported setup). The syntax looks correct, no issues with specifying property names as youโve done.Chris Lee
05/29/2023, 8:39 PMIgor Wojda
05/29/2023, 9:00 PMChris Lee
05/29/2023, 9:00 PMAdam
05/29/2023, 9:01 PM-P"konsist.releaseTarget=local"
Vampire
05/29/2023, 9:02 PMkonsist
and .releaseTarget=local
and due to that .releaseTarget=local
is seen as separate argument that is then taken as task name.Vampire
05/29/2023, 9:02 PMVampire
05/29/2023, 9:03 PMIgor Wojda
05/29/2023, 9:35 PM* What went wrong:
Task '.param1' not found in root project 'Test'.
@Vampire @Chris Lee can you take a close look? (you may not be able to see GithubActions logs, so pushing attached project to own test repo and opening PR may be the best way to set this up and reproduce the issue)Vampire
05/29/2023, 9:39 PMVampire
05/29/2023, 9:39 PMIgor Wojda
05/29/2023, 9:40 PMVampire
05/29/2023, 9:41 PMVampire
05/29/2023, 9:44 PMVampire
05/29/2023, 9:44 PMVampire
05/29/2023, 9:45 PM./gradlew --% -Pprefix.param1 -Pprefix.param2
it works, if you execute ./gradlew -P prefix.param1 -P prefix.param2
it works, if you execute ./gradlew -P"prefix.param1" "-Pprefix.param2"
it worksJavi
05/29/2023, 9:45 PMVampire
05/29/2023, 9:46 PMVampire
05/29/2023, 9:46 PMJavi
05/29/2023, 9:46 PMVampire
05/29/2023, 9:46 PMJavi
05/29/2023, 9:47 PMVampire
05/29/2023, 9:47 PMJavi
05/29/2023, 9:48 PMif you executeI didnโt know Gradle allows spacesit works./gradlew -P prefix.param1 -P prefix.param2
Vampire
05/29/2023, 9:49 PM-P
and I always use them as imho it increases readability.
It does not for -D
probably to stay consistent with -D
of java
.Javi
05/29/2023, 9:50 PMIgor Wojda
05/29/2023, 9:51 PMIgor Wojda
05/29/2023, 9:51 PM