Hello all :wave: I'm trying to build an Android li...
# gradle
a
Hello all 👋 I'm trying to build an Android library to embed a fatjar with
shadowJar
. I can make a shadowJar with Coroutines & Koin, for example. But if I try to relocate a library , it doesn"t work. Is there any limitation in relocating Kotlin libraries in jar?
e
shadow pretty much doesn't work with kotlin, it rewrites too many references and breaks metadata. https://github.com/GradleUp/shadow/issues/843 https://github.com/GradleUp/shadow/issues/562
a
thanks for the references 👍
t
In general we are using Shadow in
kotlin.git
itself and it is working for us. Though I don't know the details of it. @Alexander.Likhachev maybe you could provide more info?
e
if you don't relocate
kotlin
it's probably not that bad
😅 1
a
@tapchicoma in kotlin.git in our use case, we are relocating only a subset of symbols that are intended for internal use. shadow is indeed not capable of properly relocating stuff like extension functions and some other
👌 2