diff --git a/build.gradle b/build.gradle index 2fbfdae7fc6..d0e7eae5f2c 100644 --- a/build.gradle +++ b/build.gradle @@ -11,6 +11,7 @@ buildscript { classpath "javax.xml.bind:jaxb-api:$jaxbApiVersion" classpath "com.sun.xml.bind:jaxb-impl:$jaxbImplVersion" classpath "org.codehaus.groovy.modules.http-builder:http-builder:0.7.2" + classpath("gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.16.1") } } @@ -295,6 +296,7 @@ allprojects { } } } + apply from: rootProject.layout.projectDirectory.file('gradle/dependency-licenses.gradle') } apply from: "gradle/idea.gradle" diff --git a/gradle/dependency-licenses.gradle b/gradle/dependency-licenses.gradle new file mode 100644 index 00000000000..b857a00c7fd --- /dev/null +++ b/gradle/dependency-licenses.gradle @@ -0,0 +1,11 @@ +apply plugin: 'com.github.hierynomus.license-report' + +List licenseExclusions = rootProject.subprojects.collect { + "org.grails:${it.name}:${rootProject.projectVersion}" as String +} + +downloadLicenses { + includeProjectDependencies = true + dependencyConfiguration = 'runtimeClasspath' + excludeDependencies = licenseExclusions +} \ No newline at end of file