org.gradle.api.internal.tasks.options.Option not available for own tasks


(Björn Kautler) #1

Is there a reason @Option is not available in the public API for usage in custom tasks?
I’d consider it handy to be able to define @Options on custom tasks instead of having to use project properties for this purpose.


(Mark Vieira) #2

There’s technically nothing stopping you from using this feature. It being “internal” simply means it’s not a stable or documented public API so it may change/break/disappear in the future. That said, there have been discussions about promoting this to public.


(Björn Kautler) #3

Ah, nice, thanks for the info. :slight_smile:
+1 for adding promoting to public