anybody have a good example of POM modification fo...
# gradle
m
anybody have a good example of POM modification for a
MavenPublication
using
withXml
?
s
would need to look at the rest of the stacktrace... but i suspect that it is in jvm compile or ivy resolve?
n
i have used it here to make a snapshot marker for my releases, very similar to the one made to mark gradle plugin https://github.com/elytra/Voodoo/blob/master/build.gradle.kts#L204-L224
m
thanks, that will be helpful
m
I've used it to "fix" dependencies from scope
runtime
->
compile
and also add a bunch of metadata for publishing - https://github.com/madisp/android-chunk-utils/blob/master/publishing.gradle#L11
m
thanks @madisp, i'm doing something similar but was seeing how it translates to kotlin. the short version is "not well"
m
oh, I completely missed the kotlin part, sorry 🙂
m
all good!
n
kinda comes with the slack i think 😛
e
kotlinx.dom
might help make working with
org.w3c.dom
easier