2021-07-29 03:14:29 +02:00
|
|
|
// Relocations
|
2023-04-30 18:28:11 +02:00
|
|
|
[
|
|
|
|
// JDA, WS
|
|
|
|
'net.dv8tion.jda',
|
|
|
|
'com.iwebpp',
|
|
|
|
'com.neovisionaries.ws',
|
|
|
|
|
|
|
|
// Trove
|
|
|
|
'gnu.trove',
|
|
|
|
|
|
|
|
// Jackson
|
|
|
|
'com.fasterxml.jackson',
|
|
|
|
|
|
|
|
// okhttp
|
|
|
|
'okhttp3',
|
|
|
|
'okio',
|
|
|
|
|
2023-07-11 18:50:19 +02:00
|
|
|
// Kotlin
|
|
|
|
'kotlin',
|
|
|
|
|
2023-04-30 18:28:11 +02:00
|
|
|
// DependencyDownload
|
|
|
|
'dev.vankka.dependencydownload',
|
|
|
|
'dev.vankka.mcdependencydownload',
|
|
|
|
'me.lucko.jarrelocator',
|
|
|
|
'org.objectweb.asm',
|
|
|
|
|
|
|
|
// Configurate, geantyref, yaml
|
|
|
|
'org.spongepowered.configurate',
|
|
|
|
'io.leangen.geantyref',
|
|
|
|
'org.yaml.snakeyaml',
|
|
|
|
|
|
|
|
// HikariCP
|
|
|
|
'com.zaxxer.hikari',
|
|
|
|
|
|
|
|
// MinecraftAuth lib (& it's dependencies)
|
|
|
|
'me.minecraftauth.lib',
|
|
|
|
'com.github.kevinsawicki.http',
|
|
|
|
'org.json.simple',
|
|
|
|
'alexh',
|
|
|
|
|
|
|
|
// Adventure (API isn't relocated always)
|
2024-03-02 15:53:01 +01:00
|
|
|
'net.kyori.adventure.ansi',
|
|
|
|
'net.kyori.adventure.examination',
|
|
|
|
'net.kyori.adventure.option',
|
2023-04-30 18:28:11 +02:00
|
|
|
'net.kyori.adventure.platform',
|
|
|
|
'net.kyori.adventure.text.serializer',
|
|
|
|
|
|
|
|
// EnhancedLegacyText, MCDiscordReserializer
|
|
|
|
'dev.vankka.enhancedlegacytext',
|
|
|
|
'dev.vankka.mcdiscordreserializer',
|
|
|
|
'dev.vankka.simpleast',
|
|
|
|
|
|
|
|
// Caffeine
|
|
|
|
'com.github.benmanes.caffeine',
|
|
|
|
|
|
|
|
// Commons
|
|
|
|
'org.apache.commons',
|
|
|
|
|
|
|
|
// SLF4J
|
|
|
|
'org.slf4j',
|
|
|
|
|
|
|
|
// Checker Framework
|
|
|
|
'org.checkerframework',
|
|
|
|
|
|
|
|
// Gson, Google error prone annotations
|
|
|
|
'com.google.gson',
|
|
|
|
'com.google.errorprone.annotations',
|
|
|
|
|
|
|
|
// Webhooks
|
|
|
|
'club.minnced',
|
|
|
|
'org.json',
|
|
|
|
].each {
|
|
|
|
tasks.shadowJar.relocate it, 'com.discordsrv.dependencies.' + it
|
|
|
|
tasks.generateRuntimeDownloadResourceForRuntimeDownloadOnly.relocate it, 'com.discordsrv.dependencies.' + it
|
|
|
|
}
|
2021-10-25 01:04:46 +02:00
|
|
|
|
2023-04-30 18:28:11 +02:00
|
|
|
shadowJar {
|
2022-04-26 13:56:32 +02:00
|
|
|
// Unrelocate package, in case a platform uses something we normally relocate
|
|
|
|
relocate('com.discordsrv.unrelocate.', '')
|
2021-07-29 03:14:29 +02:00
|
|
|
}
|