Hi, every time I run './gradlew wrapper' with 9.5....
# community-support
d
Hi, every time I run './gradlew wrapper' with 9.5.0, the new retry values are reset to their defaults once I set a number of retries, shouldn't it keep the values I set?
v
I don't think so. The 4 wrapper files are always overwritten with the defaults unless you supply options to the wrapper task like
--retries
or
--retray-back-off-ms
, see
gw help --task wrapper
. Or via task configuration.
Preserving values in the existing file if no options are supplied would probably be a candidate for a feature request
d
maybe setting in gradle.properties is the way to override?
documentation says to update the gradle-wrapper.properties file to set retries, so that doesn't seem quite right
v
As I said, you can set via CLI options to the
wrapper
task or task-configuration of the
wrapper
task what to generate. So if you want to have certain values when you call the
wrapper
task, configure the
wrapper
task in your build script.
d
got it. i was reading it as I had to set the CLI whenever I called wrapper. this makes sense now. thanks
👌 1
t
I agree that the docs are misleading on this point. They say to edit the file directly. They do not say to configure the task.
d
for completeness, when I committed the task that sets the properties, copilot sees this as a conflict with the settings in gradle-wrapper.properties
v
Then I'd say Copilot is obviously wrong, as the task configuration controls what will be written to that file if you execute the
wrapper
task.