Relocate a dependency using shadowJar?

Viewed 28

So i'm using a template which has the shadow plugin preconfigured for me, and I'm trying to implement a library. This is the important part of build.gradle:

tasks.shadowJar {
    archiveClassifier.set("all-dev")
    configurations = listOf(shadowImpl)
    doLast {
        configurations.forEach {
            println("Config: ${it.files}")
        }
    }

    // If you want to include other dependencies and shadow them, you can relocate them in here
    fun relocate(name: String) = relocate(name, "com.examplemod.deps.$name")
}

How should I format relocating the dependency? should it be: relocate("club.minnced:discord-webhooks:0.8.2"), or simply relocate("club.minnced"), or something else?

Thanks

BTW the dependency is called club.minnced:discord-webhooks:0.8.2

0 Answers
Related