Use gradle root project build dir in check-license (#144)

Fixed check-license to use root project's build dir property instead of relative path which resolves to user.dir.

Signed-off-by: Usman Saleem <usman@usmans.info>
pull/133/head
Usman Saleem 5 years ago committed by GitHub
parent 605a6835a1
commit a07b450663
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      gradle/check-licenses.gradle

@ -160,7 +160,7 @@ task checkLicenses {
def bads = ""
doLast {
def xml = new XmlParser().parse('build/reports/license/license-dependency.xml')
def xml = new XmlParser().parse("${rootProject.buildDir}/reports/license/license-dependency.xml")
xml.each { license ->
if (!acceptedLicenses.contains((license.@name).toLowerCase())) {
def depStrings = []

Loading…
Cancel
Save