Skip to content

Commit

Permalink
Merge pull request #6 from chali/UpdatesForGradle48
Browse files Browse the repository at this point in the history
Updates to make plugin compatible with Gradle 4.8
  • Loading branch information
chali authored May 5, 2018
2 parents 02b426d + 78804ab commit 19a3518
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ open class NebulaDependencyInsightReportTask : DependencyInsightReportTask() {

@Suppress("UNCHECKED_CAST")
private fun DependencyInsightReporter.legacyPrepare(input: Collection<DependencyResult>, versionSelectorScheme: VersionSelectorScheme, versionComparator: VersionComparator): Collection<RenderableDependency> {
return javaClass.getDeclaredMethod("prepare").invoke(input, versionSelectorScheme, versionComparator) as Collection<RenderableDependency>
return javaClass.getMethod("prepare", Collection::class.java, VersionSelectorScheme::class.java, VersionComparator::class.java)
.invoke(this, input, versionSelectorScheme, versionComparator) as Collection<RenderableDependency>
}
}

0 comments on commit 19a3518

Please sign in to comment.