Closed b95505017 closed 2 years ago
This appears due to these two using the same resolution-strategy
value
@get:OptionValues("resolution-strategy")
val resolutionStrategyOptions: List<String>
@get:Internal
@set:Option(
option = "resolution-strategy",
description = "Set the version conflict resolution strategy."
)
var resolutionStrategyOption: ResolutionStrategy
Hmmm, no idea how to fix this without copying all our options into every task. Also, the resolution strategy stuff is a red herring, it'll fail at other options if you remove that one. Definitely seems like a Gradle bug though. Filed https://github.com/gradle/gradle/issues/19868
I don't think that's a gradle bug, there are indeed two different options defining the same argument name
No, OptionValues is not an option. It specifies a list of valid strings to be passed into some other option. Just to be 100% sure, I commented out resolutionStrategyOptions
and the bug still occurs.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Keeping this open until it's resolved in the Gradle side.
Fixed on the Gradle side.
Works for us, thanks. Updated to Gradle 7.6
Describe the bug
A clear and concise description of what the bug is.
How To Reproduce
Versions