c5ce32653d
When the plugin rewrites a POM, it establishes the mapping of the original Maven coordinates to the modified ones. As one of the steps, this requires finding the original Maven coordinates to rewrite – these should be exactly the coordinates that Gradle writes to the POM. In MPP, these are the coordinates of the 'root' (Gradle module metadata) publication. If those are modified in the publication, the plugin relies on delegating to the publication in the root module's SotwareComponent (the only reasonable fallback is the project's name, and in this case it obviously doesn't match the Maven artifact ID that was modified). In 1.3.20, the publication delegate was never assigned. To fix the issue, it is enough to correctly assign the publication delegate for the root module's SoftwareComponent. Issue #KT-29485 Fixed