Skip to content

Commit

Permalink
Use gradle root project build dir in check-license (#144)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
usmansaleem authored Oct 30, 2019
1 parent 605a683 commit a07b450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gradle/check-licenses.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit a07b450

Please sign in to comment.