-
Notifications
You must be signed in to change notification settings - Fork 114
Upgrade to v0.14.0
If you’re upgrading to v0.14.0 from any previous version there are a number of changes to be aware of.
The License task has been split up into 2 tasks, in order to make the distinction more clear:
-
com.hierynomus.gradle.license.tasks.LicenseCheck
: This task is preconfigured to check the source files for license headers -
com.hierynomus.gradle.license.tasks.LicenseFormat
: This task is preconfigured to add license headers to the source files if they’re not present.
The License
task itself is still usable but is considered deprecated in favour of the above two.
The license plugin has been split up into 3 different plugins. The main reason is that each of these is now more focused and you can configure them independently so that you only get the functionality you want.
If you apply this plugin, it will configure a LicenseCheck
and a LicenseFormat
task per sourceset in your project. It will however not enforce running these tasks during any of the gradle build lifecycle.
If you apply this plugin it will configure the license reporting of your dependencies.
If you apply this plugin, it will:
-
apply the
com.github.hierynomus.license-base
plugin -
apply the
com.github.hierynomus.license-report
plugin -
hook up all the configured
LicenseCheck
tasks to a singlelicenseCheck
task, that will be added to the task dependencies of thecheck
lifecycle task. It will also hook up all theLicenseFormat
tasks to a singlelicenseFormat
task.