From 78804abc48cf2e2ec939ccfa70879c281a81b267 Mon Sep 17 00:00:00 2001 From: Martin Chalupa Date: Fri, 4 May 2018 17:25:45 -0700 Subject: [PATCH] Updates to make plugin compatible with Gradle 4.8 --- .../dependencybase/tasks/NebulaDependencyInsightReportTask.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/com/netflix/nebula/dependencybase/tasks/NebulaDependencyInsightReportTask.kt b/src/main/kotlin/com/netflix/nebula/dependencybase/tasks/NebulaDependencyInsightReportTask.kt index 9592d6b..fb1bd5f 100644 --- a/src/main/kotlin/com/netflix/nebula/dependencybase/tasks/NebulaDependencyInsightReportTask.kt +++ b/src/main/kotlin/com/netflix/nebula/dependencybase/tasks/NebulaDependencyInsightReportTask.kt @@ -137,6 +137,7 @@ open class NebulaDependencyInsightReportTask : DependencyInsightReportTask() { @Suppress("UNCHECKED_CAST") private fun DependencyInsightReporter.legacyPrepare(input: Collection, versionSelectorScheme: VersionSelectorScheme, versionComparator: VersionComparator): Collection { - return javaClass.getDeclaredMethod("prepare").invoke(input, versionSelectorScheme, versionComparator) as Collection + return javaClass.getMethod("prepare", Collection::class.java, VersionSelectorScheme::class.java, VersionComparator::class.java) + .invoke(this, input, versionSelectorScheme, versionComparator) as Collection } }