When you use relocate in shadow jar, it work ok, but not relocate kotlin metadata stuff, SOOOOOOOOOOOOOOO
Now you fix invalid kotlin metadata relocate with my plugin (actually stolen and modified exposed-gradle-plugin)
If you want use it
// settings.gradle.kts
pluginManagement {
repositories {
gradlePluginPortal()
maven {
url = uri("https://repo.spliterash.ru/group/")
}
}
}
// build.gradle.kts
plugins {
id("ru.spliterash.shadow-kotlin-relocate") version "1.0.0"
}
tasks.shadowJar {
// use kotlinRelocate instead relocate
kotlinRelocate("source", "destination")
}
tasks {
assemble { dependsOn(relocateKotlinMetadata) }
}