This message was deleted.
# community-support
s
This message was deleted.
πŸ› 2
v
Maybe make feature variants for the different Gradle versions?
e
hmm, there doesn't seem to be any public way to register
@Option
-equivalents at runtime (as is possible with simple properties via
task.getInputs().property(...)
)
so right, it looks like your options are either feature variants or registering different task subclasses based on Gradle version
j
That’d be also the cleanest way I guess. Thanks, folks!
Don't you think this is a breaking change introduced in
8.2
?
πŸ‘ 1
v
I would even tend to say it is a bug. I guess it goes through validation that it is a valid option, then removes the prefix, doesn't find the option to set and just ignores it. If it would instead throw a "no such option" exception, it would be a breaking change. But it should probably be able to set that option still instead and maybe even add
--header
automatically if there is
--no-header
.
j
l
Thanks for catching this and reporting it.
πŸ™Œ 1
j
The issue is fixed with
8.2.1
. Thanks, folks! πŸ’™
πŸ‘Œ 1