Skip to content
Jeroen van Erp edited this page Apr 13, 2017 · 2 revisions

If you’re upgrading to v0.14.0 from any previous version there are a number of changes to be aware of.

License Task

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.

License Plugin

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.

com.github.hierynomus.license-base

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.

com.github.hierynomus.license-report

If you apply this plugin it will configure the license reporting of your dependencies.

com.github.hierynomus.license

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 single licenseCheck task, that will be added to the task dependencies of the check lifecycle task. It will also hook up all the LicenseFormat tasks to a single licenseFormat task.

license Extension

The sourceSets property of the LicenseExtension is now unused and will be removed in a future version.