Skip to content

Commit

Permalink
Fix reflection issue inside gradle plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
RoRoche committed May 6, 2020
1 parent a9a0654 commit 9ee1093
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,18 @@ class BuildClassDiagramTask extends DefaultTask implements CustomTask {
"Classes to ignore: {}",
extension.ignoredClasses
)
getLogger().lifecycle(
"URLs to scan: " + project.sourceSets.main.output.classesDirs.files
)
final URL[] urls = project.sourceSets.main.output.classesDirs.files.collect { File dir ->
dir.listFiles()
}.flatten().collect {
it.toURI().toURL()
getLogger().lifecycle(
"File?: " + it
)
if(it != null) {
it.toURI().toURL()
}
} as URL[]
getLogger().lifecycle(
"URLs to scan: " + urls
Expand Down

0 comments on commit 9ee1093

Please # to comment.