Anyone else seeing failures with gradle publishing...
# announcements
m
Anyone else seeing failures with gradle publishing and 1.5.20?
I've seen 2 separate projects fail our CD after upgrading
Copy code
[2021-06-24T17:31:48.896Z] Execution failed for task ':base:generatePomFileForBasePublication'.

[2021-06-24T17:31:48.896Z] > Could not apply withXml() to generated POM

[2021-06-24T17:31:48.896Z]    > kotlin.KotlinNullPointerException (no error message)
both projects fail with the same error message, and both worked as expected with 1.5.10
Copy code
Caused by: kotlin.KotlinNullPointerException
        at org.jetbrains.kotlin.gradle.plugin.mpp.MppDependencyRewritingUtilsKt.associateDependenciesWithActualModuleDependencies(mppDependencyRewritingUtils.kt:188)
        at org.jetbrains.kotlin.gradle.plugin.mpp.MppDependencyRewritingUtilsKt.access$associateDependenciesWithActualModuleDependencies(mppDependencyRewritingUtils.kt:1)
        at org.jetbrains.kotlin.gradle.plugin.mpp.PomDependenciesRewriter$dependenciesMappingForEachUsageContext$2.call(mppDependencyRewritingUtils.kt:40)
        at org.jetbrains.kotlin.gradle.plugin.mpp.PomDependenciesRewriter$dependenciesMappingForEachUsageContext$2.call(mppDependencyRewritingUtils.kt:37)
        at org.gradle.api.internal.provider.DefaultProvider.calculateOwnValue(DefaultProvider.java:66)
        at org.gradle.api.internal.provider.AbstractMinimalProvider.get(AbstractMinimalProvider.java:84)
        at org.jetbrains.kotlin.gradle.utils.ProviderApiUtilsKt.getValue(providerApiUtils.kt:18)
        at org.jetbrains.kotlin.gradle.plugin.mpp.PomDependenciesRewriter.getDependenciesMappingForEachUsageContext(mppDependencyRewritingUtils.kt:37)
        at org.jetbrains.kotlin.gradle.plugin.mpp.PomDependenciesRewriter.rewritePomMppDependenciesToActualTargetModules(mppDependencyRewritingUtils.kt:73)
        at org.jetbrains.kotlin.gradle.plugin.mpp.PomDependenciesRewriter.rewritePomMppDependenciesToActualTargetModules$default(mppDependencyRewritingUtils.kt:47)
        at org.jetbrains.kotlin.gradle.plugin.AbstractKotlinPlugin$rewritePom$1.execute(KotlinPlugin.kt:424)
        at org.jetbrains.kotlin.gradle.plugin.AbstractKotlinPlugin$rewritePom$1.execute(KotlinPlugin.kt:422)
        at org.gradle.api.internal.UserCodeAction.execute(UserCodeAction.java:39)
t
Kotlin/CSS (multiplatform) publication works fine
a
­čÖî 1