plugin gradle to use pivotal/licenseFinder on your build process
it is compatible with the new plugin mechanism and can be used with :
plugins {
id 'com.ullink.gradle.licenseFinder' version: '0.1-SNAPSHOT'
}
or, when using gradler lower than 2.1 :
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "com.ullink.gradle:gradle-licenseFinder-plugin:0.1-SNAPSHOT"
}
}
it creates a task 'licenseFinder' that may be configured as follows :
licenseFinder {
dependencyConfiguration : "runtime"
checkLicensesScriptArgs : ["--project-path=${project.path}", "--gradle-command=${project.path}"]
checkLicensesDescription : "check License for dependencies project"
checkLicensesScript : StreamUtil.streamToFile(this.class.getResourceAsStream('/entrypoint.rb'))
decisions : []
whiteList : ["MIT", "AGPL-3.0", "GPL-3.0", "LGPL-3.0", "MPL-2.0", "APACHE-2.0", "UNLICENSE"]
}