Task @Option annotation deprecated?


(Stewart Bryson) #1

Is the Task @Option annotation, as discussed here, deprecated? In the user guide I linked to it’s listed as Incubating. However, IntelliJ syntax highlighting lists the annotation as deprecated. I’m assuming IntelliJ itself is reading an annotation of some kind to get that metadata, but I’m not sure how all that works.

It’s still working… but I don’t want to continue writing these quick CLI options if the general direction is to remove them.


(Garrett L. Ward) #2

Make sure you’re importing the new annotation (org.gradle.api.tasks.options.Option) and not the old internal one (org.gradle.api.internal.tasks.options.Option)