diff --git a/README.md b/README.md index 7fdf484..295bcee 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Add this to your `build.gradle` file: ```groovy plugins { - id 'com.github.jk1.dependency-license-report' version '1.12' + id 'com.github.jk1.dependency-license-report' version '1.13' } ``` @@ -31,7 +31,7 @@ buildscript { } dependencies { - classpath 'com.github.jk1:gradle-license-report:1.12' + classpath 'com.github.jk1:gradle-license-report:1.13' } } apply plugin: 'com.github.jk1.dependency-license-report' @@ -82,6 +82,7 @@ licenseReport { importers = [new XmlReportImporter('Frontend dependencies', file(frontend_libs.xml))] // This is for the allowed-licenses-file in checkLicense Task + // Accepts File, URL or String path to local or remote file allowedLicensesFile = new File("$projectDir/config/allowed-licenses.json") } ``` @@ -98,7 +99,7 @@ import com.github.jk1.license.filter.DependencyFilter import com.github.jk1.license.filter.LicenseBundleNormalizer plugins { - id("com.github.jk1.dependency-license-report") version "1.12" + id("com.github.jk1.dependency-license-report") version "1.13" } licenseReport { @@ -326,7 +327,7 @@ repositories { } dependencies { - compile 'com.github.jk1:gradle-license-report:1.12' + compile 'com.github.jk1:gradle-license-report:1.13' } ``` @@ -415,3 +416,11 @@ licenseReport { } ``` +or + +```groovy +licenseReport { + allowedLicensesFile = new URL("http://company.com/licenses/allowed-licenses.json") +} +``` + diff --git a/build.gradle b/build.gradle index b34faae..9f01c66 100644 --- a/build.gradle +++ b/build.gradle @@ -9,7 +9,7 @@ plugins { } group = "com.github.jk1" -version = "1.12" +version = "1.13" sourceCompatibility = 1.8 targetCompatibility = 1.8 diff --git a/samples/kotlin/build.gradle.kts b/samples/kotlin/build.gradle.kts index ba15dcb..5bf76b8 100644 --- a/samples/kotlin/build.gradle.kts +++ b/samples/kotlin/build.gradle.kts @@ -4,7 +4,7 @@ import com.github.jk1.license.filter.DependencyFilter import com.github.jk1.license.filter.LicenseBundleNormalizer plugins { - id("com.github.jk1.dependency-license-report") version "1.12" + id("com.github.jk1.dependency-license-report") version "1.13" id("java") }