Did someone manage to exclude kotlin native compil...
# multiplatform
p
Did someone manage to exclude kotlin native compilations from the maven publish task? We publish the ios classes as an xcframework and the jvm classes to our internal maven repo. However on macs the publish task takes ages because all the klibs are being built that we don't need
b
Would this work for you? Obviously you'd need to adjust it to completely suppress osx publications, but this should give you a general idea. https://www.github.com/mpetuska/template-kmp-library/tree/master/buildSrc%2Fsrc%2Fmain%2Fkotlin%2Flocal.library-conventions.gradle.kts#L151
t
passing
-x
to gradle with the name of the specific task to exclude should work