https://github.com/spliterash/shadow-kotlin-relocate
Plugin for fix kotlin metadata when relocate kotlin classes
https://github.com/spliterash/shadow-kotlin-relocate
gradle gradle-plugin kotlin shadowjar
Last synced: about 1 month ago
JSON representation
Plugin for fix kotlin metadata when relocate kotlin classes
- Host: GitHub
- URL: https://github.com/spliterash/shadow-kotlin-relocate
- Owner: Spliterash
- Created: 2022-11-25T13:54:58.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-14T12:28:55.000Z (over 3 years ago)
- Last Synced: 2025-02-28T16:07:46.316Z (over 1 year ago)
- Topics: gradle, gradle-plugin, kotlin, shadowjar
- Language: Kotlin
- Homepage:
- Size: 64.5 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/JetBrains/exposed-intellij-plugin/tree/master/exposed-gradle-plugin))
If you want use it
```kotlin
// settings.gradle.kts
pluginManagement {
repositories {
gradlePluginPortal()
maven {
url = uri("https://repo.spliterash.ru/group/")
}
}
}
```
```kotlin
// 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) }
}
```