https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
p

Paul Woitaschek

05/11/2021, 10:27 AM
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

Big Chungus

05/11/2021, 10:29 AM
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

Tijl

05/11/2021, 10:38 AM
passing
-x
to gradle with the name of the specific task to exclude should work
2 Views