We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent baf9f89 commit 9eadd40Copy full SHA for 9eadd40
libraries/apollo-gradle-plugin-external/src/main/kotlin/com/apollographql/apollo/gradle/internal/utils.kt
@@ -28,7 +28,9 @@ internal fun List<InputFile>.isolate(): List<Any> = flatMap { listOf(it.normaliz
28
29
30
internal fun ProjectDependency.getPathCompat(): String {
31
- val method = this::class.java.getDeclaredMethod("getPath")
+ val method = this::class.java.methods.firstOrNull {
32
+ it.name == "getPath" && it.parameters.isEmpty()
33
+ }
34
return if (method != null) {
35
// Gradle 8.11+ path
36
// See https://docs.gradle.org/8.11/userguide/upgrading_version_8.html#deprecate_get_dependency_project
0 commit comments