Ignore tasks from an apply plugin

I absolutely love plugins, but occasionally I don’t need all of the tasks the plugin offers. This becomes a little unsightly when the users of my build run “gradle tasks” and only 10% of the tasks are relevant.

It would be really nice if I could put an @Ignore in my build script for a task, so when I run “gradle tasks” they don’t show up.

Try setting the ‘group’ property on the task to null

apply plugin:'java'
jar.group = null

Nice! This did the trick.

I also applied it to an item in the middle of a task dependency graph and it still run fine.

Thanks Casey