Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,12 @@ abstract class LicensesTask extends DefaultTask {
new Dependency("${licenseKey} ${licenseName}", libraryName),
licenseUrl.getBytes(UTF_8))
}
} else {
} else if (!rootNode.licenses.license.url?.isEmpty()) {
String nodeUrl = rootNode.licenses.license.url
appendDependency(new Dependency(licenseKey, libraryName), nodeUrl.getBytes(UTF_8))
} else {
String licenseName = rootNode.licenses.license.name
appendDependency(new Dependency(licenseKey, libraryName), licenseName.getBytes(UTF_8))
}
}

Expand Down