hierynomus / license-gradle-plugin

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

Task and Extension have the same name, should be documented #143

Open FibreFoX opened 6 years ago

FibreFoX commented 6 years ago

First of all, thanks for this plugin, it really helps (and yes, I do know the pain about documentation).

But I had some problem for creating task-dependencies inside my subprojects, the only hint was here: https://github.com/hierynomus/license-gradle-plugin/issues/77#issuecomment-127712381

I would suggest to add this hint into the README.md-file.

subprojects { subproject ->
    // https://github.com/hierynomus/license-gradle-plugin
    apply plugin: 'com.github.hierynomus.license-report'

    build.dependsOn(subproject.tasks.getByName('downloadLicenses'));

    downloadLicenses {
        // check transitive dependencies
        includeProjectDependencies = true

        // dependencyConfiguration = 'compile'
        dependencyConfiguration = 'runtime'
    }
}