With libertyDev, project properties specified via -Px=y
can't be used to resolve build gradle in child gradle invocation
#791
Labels
-Px=y
can't be used to resolve build gradle in child gradle invocation
#791
RECREATE
gradlew -Plgpv=3.4.1 libertyCreate
gradlew -Plgpv=3.4.1 libertyDev
NOTES
At first, I thought, from reading #607 and looking at the fix https://github.com/OpenLiberty/ci.gradle/blob/main/src/main/groovy/io/openliberty/tools/gradle/tasks/DevTask.groovy#L1197 that only liberty.runtime.* project properties were propagated to the child dev mode gradle invocation as -P project properties.
However, this doesn't explain the fact that this works:
gradlew -Pliberty.server.bootstrapProperties.abc=123 -Pliberty.server.var.xyz=456 libertyDev
, even though it seems to me that the config file translation/copying happens within the child gradle execution (within the libertyCreate task impl that runs as part of libertyDev).So there seems to be a different behavior between making the properties available for basic resolution/evaluation of the Gradle build file (I'm probably not using the precise terms) vs. having the properties available for task implementations.
WORKAROUND
lgpv=3.4.1
in a gradle.properties fileThe text was updated successfully, but these errors were encountered: