Fix dependency generation not picking up relocations sometimes

This commit is contained in:
Vankka 2022-06-09 20:03:17 +03:00
parent 33738959f7
commit 2b5c8b9d2f
No known key found for this signature in database
GPG Key ID: 6E50CB7A29B96AD0
2 changed files with 13 additions and 9 deletions

View File

@ -3,11 +3,13 @@ import dev.vankka.dependencydownload.task.GenerateDependencyDownloadResourceTask
shadowJar { shadowJar {
archiveFileName = 'bukkit.jarinjar' archiveFileName = 'bukkit.jarinjar'
[ configure {
'net.kyori', [
'me.lucko.commodore' 'net.kyori',
].each { 'me.lucko.commodore'
relocate it, 'com.discordsrv.dependencies.' + it ].each {
relocate it, 'com.discordsrv.dependencies.' + it
}
} }
// More relocations in buildscript/relocations.gradle // More relocations in buildscript/relocations.gradle
} }

View File

@ -1,10 +1,12 @@
shadowJar { shadowJar {
archiveFileName = 'bungee.jarinjar' archiveFileName = 'bungee.jarinjar'
[ configure {
'net.kyori' [
].each { 'net.kyori'
relocate it, 'com.discordsrv.dependencies.' + it ].each {
relocate it, 'com.discordsrv.dependencies.' + it
}
} }
// More relocations in buildscript/relocations.gradle // More relocations in buildscript/relocations.gradle
} }