From c342a629cc1e901488551a3d40b110e0712bca44 Mon Sep 17 00:00:00 2001 From: Brice Dutheil Date: Mon, 11 May 2026 14:50:38 +0200 Subject: [PATCH] build(gradle): replace SelfResolvingDependency by ExternalModuleDependency `SelfResolvingDependency` was removed in Gradle 9. The original POM filter in `publish.gradle` excluded file-based dependencies by negating instanceof `SelfResolvingDependency`, which `FileCollectionDependency` implemented in Gradle 8. This change replaces it with a positive check for `ProjectDependency` and `ExternalModuleDependency`, which are the two types that actually have Maven coordinates and belong in a published POM. --- gradle/publish.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/publish.gradle b/gradle/publish.gradle index 699e130ed22..a975be8a06b 100644 --- a/gradle/publish.gradle +++ b/gradle/publish.gradle @@ -38,7 +38,7 @@ publishing { def dependenciesNode = xml.asNode().appendNode('dependencies') project.configurations.api.allDependencies.each { - if ((it instanceof ProjectDependency) || !(it instanceof SelfResolvingDependency)) { + if (it instanceof ProjectDependency || it instanceof ExternalModuleDependency) { def dependencyNode = dependenciesNode.appendNode('dependency') dependencyNode.appendNode('groupId', it.group) dependencyNode.appendNode('artifactId', it.name)