2021-07-29 03:14:29 +02:00
|
|
|
// Relocations
|
|
|
|
|
|
|
|
shadowJar {
|
|
|
|
[
|
2021-10-25 01:04:46 +02:00
|
|
|
// JDA, WS
|
2021-07-29 03:14:29 +02:00
|
|
|
'net.dv8tion.jda',
|
2021-10-19 22:17:30 +02:00
|
|
|
'com.iwebpp',
|
2021-07-29 03:14:29 +02:00
|
|
|
'com.neovisionaries.ws',
|
2021-10-25 01:04:46 +02:00
|
|
|
|
|
|
|
// Trove
|
|
|
|
'gnu.trove',
|
|
|
|
|
|
|
|
// Jackson
|
|
|
|
'com.fasterxml.jackson',
|
|
|
|
|
|
|
|
// okhttp
|
2021-07-29 03:14:29 +02:00
|
|
|
'okhttp3',
|
|
|
|
'okio',
|
2021-10-19 22:17:30 +02:00
|
|
|
|
2021-07-29 03:14:29 +02:00
|
|
|
// DependencyDownload
|
|
|
|
'dev.vankka.dependencydownload',
|
|
|
|
'dev.vankka.mcdependencydownload',
|
|
|
|
'me.lucko.jarrelocator',
|
|
|
|
'org.objectweb.asm',
|
2021-10-19 22:17:30 +02:00
|
|
|
|
|
|
|
// Configurate, geantyref, yaml
|
2021-07-29 03:14:29 +02:00
|
|
|
'org.spongepowered.configurate',
|
2021-10-19 22:17:30 +02:00
|
|
|
'io.leangen.geantyref',
|
2021-07-29 03:14:29 +02:00
|
|
|
'org.yaml.snakeyaml',
|
2021-10-19 22:17:30 +02:00
|
|
|
|
2022-02-19 23:57:42 +01:00
|
|
|
// HikariCP
|
|
|
|
'com.zaxxer.hikari',
|
|
|
|
|
2022-05-11 18:09:41 +02:00
|
|
|
// MinecraftAuth lib (& it's dependencies)
|
|
|
|
'me.minecraftauth.lib',
|
|
|
|
'com.github.kevinsawicki.http',
|
|
|
|
'org.json.simple',
|
|
|
|
'alexh',
|
|
|
|
|
2022-03-01 11:26:09 +01:00
|
|
|
// Adventure (API isn't relocated always)
|
|
|
|
'net.kyori.adventure.platform',
|
|
|
|
'net.kyori.adventure.text.serializer',
|
|
|
|
|
|
|
|
// EnhancedLegacyText, MCDiscordReserializer
|
2021-10-18 01:35:53 +02:00
|
|
|
'dev.vankka.enhancedlegacytext',
|
2021-10-19 22:17:30 +02:00
|
|
|
'dev.vankka.mcdiscordreserializer',
|
|
|
|
'dev.vankka.simpleast',
|
|
|
|
|
|
|
|
// Caffeine
|
|
|
|
'com.github.benmanes.caffeine',
|
|
|
|
|
|
|
|
// Commons
|
|
|
|
'org.apache.commons',
|
|
|
|
|
2021-12-24 00:21:14 +01:00
|
|
|
// SLF4J
|
|
|
|
'org.slf4j',
|
|
|
|
|
2021-10-19 22:17:30 +02:00
|
|
|
// Checker Framework
|
|
|
|
'org.checkerframework',
|
|
|
|
|
|
|
|
// Gson, Google error prone annotations
|
|
|
|
'com.google.gson',
|
|
|
|
'com.google.errorprone.annotations',
|
|
|
|
|
|
|
|
// Webhooks
|
|
|
|
'club.minnced',
|
|
|
|
'org.json',
|
2021-07-29 03:14:29 +02:00
|
|
|
].each {
|
|
|
|
relocate it, 'com.discordsrv.dependencies.' + it
|
|
|
|
}
|
2021-10-25 01:04:46 +02:00
|
|
|
|
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
|
|
|
}
|