Skip to content

Plugin for fix kotlin metadata when relocate kotlin classes

Notifications You must be signed in to change notification settings

Infumia/shadow-kotlin-relocate

 
 

Repository files navigation

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

About

Plugin for fix kotlin metadata when relocate kotlin classes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 100.0%