Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 832 Bytes

README.md

File metadata and controls

36 lines (29 loc) · 832 Bytes

ShadowKotlinRelocate

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) }
}