hierynomus / license-gradle-plugin

Manage your license(s)
http://www.javadude.nl
Other
409 stars 114 forks source link

Disable including license task in default check task #124

Closed ewortzman closed 7 years ago

ewortzman commented 7 years ago

I'd like to prevent this from running every time check is run. I want to manually have to call the license task.

Is this possible?

hierynomus commented 7 years ago

I think you can do project.tasks.check.dependsOn -= <task to remove>

hierynomus commented 7 years ago

In the upcoming 0.14.0 version I've split up the plugin into com.github.hierynomus.license-base and com.github.hierynomus.license. The license-base plugin will only add tasks for all the sourceSets, but does not actually hook them up into the lifecycle of the build, allowing you to finetune that. The license plugin is 'opinionated' and adds all of the LicenseCheck tasks to the check lifecycle task.