Hi guys,
is there away to indicate public/private tasks in gradle
I need public/private tasks to make tasks API and so developers can tell which tasks to use and which tasks they shouldn’t use.
Cheers,
Tony
Hi guys,
is there away to indicate public/private tasks in gradle
I need public/private tasks to make tasks API and so developers can tell which tasks to use and which tasks they shouldn’t use.
Cheers,
Tony
If the task is on the classpath there’s no real good way of stopping someone from directly using it. You have a few options for indicating this as such though:
com.foo.tasks.internal)tasks.whenTaskAdded() to issue a warning when users attempt to add a private task to the task container