diff --git a/gradle/check-licenses.gradle b/gradle/check-licenses.gradle index d3c25e078a..dce64499f7 100644 --- a/gradle/check-licenses.gradle +++ b/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 = []