kordamp / kordamp-gradle-plugins

A collection of Gradle plugins
https://kordamp.org/kordamp-gradle-plugins/
Apache License 2.0
138 stars 25 forks source link

NPE with `java-platform` with 0.47.0 and Gradle 7.4.2 #504

Closed musketyr closed 10 months ago

musketyr commented 2 years ago

Hi,

I'm trying to add java-platform subproject to the project using Kordamp 0.47.0 but I'm getting NPE from withPom configuration.

at org.kordamp.gradle.plugin.publishing.PublishingPlugin$_updatePublications_closure5$_closure6$_closure9$_closure10.doCall(PublishingPlugin.groovy:212)

Here's the full scan: https://scans.gradle.com/s/743zw4kv67ako/failure?expanded-stacktrace=WyIwLTEtMi0zIiwiMC0xLTIiLCIwLTEiLCIwIl0#1 Here's the PR with the project changed https://github.com/agorapulse/micronaut-worker/pull/19

I will be happy if you have any idea how to workaround it from within the subproject's Gradle script if there are no plans for releasing new version.

musketyr commented 11 months ago

I just wanted to report this bug to found that I already reported it 😅

It still persists in 0.51.0.

aalmiray commented 11 months ago

Bummer. I thought we had fixed it 😢

musketyr commented 11 months ago

Could it be wrong QName type? Maybe trying something more simple like toString().contains('dependencyManagement')?