Fixed issues when parsing directories

master
Robinson 2023-02-03 15:38:03 +01:00
parent 866cc0cbb7
commit 69802de2a6
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C
1 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ object LicenseDependencyScanner {
dep.artifacts.forEach search@{ artifact ->
val file = artifact.file
try {
if (file.canRead()) {
if (file.canRead() && file.isFile) {
ZipFile(file).use {
// read the license blob information
val ze = it.getEntry(LicenseInjector.LICENSE_BLOB)
@ -236,7 +236,7 @@ object LicenseDependencyScanner {
try {
config.resolve()
} catch (e: Throwable) {
println("Unable to resolve the '$configurationName' configuration for the project ${project.name}")
println("\tUnable to resolve the '$configurationName' configuration for the project ${project.name}")
e.printStackTrace()
return projectDependencies
}