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

chadmorrow

07/09/2020, 8:11 PM
Ok this has been quite painful and I'm floundering and could use some help. I have a multiplatform project and i want to use the shadowjar plugin to package up a jvm jar for deployment to aws. I had this working no sweat when using just the jvm kotlin plugin but using the multiplatform plugin makes the shadowjar task disappear from gradle and I can't figure out how to set it up right. There's half a dozen answers on stack overflow that purport to have an answer and none of them seem to even use valid syntax in the build.gradle.kts file anymore. Is there not an easier way to get an uberjar in a multiplatform project?
Wow. A lot of pain just from not including the
withJava()
call in the jvm config block
Problem seems to be fixed with just that addition
2 Views