Skip to content

Commit

Permalink
Fix overzealous shadow packaging
Browse files Browse the repository at this point in the history
We don't need the entirety of Bukkit inside our plugin.
  • Loading branch information
HeroCC committed Aug 11, 2020
1 parent 04d8b60 commit 1d614f3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '5.1.0'
id 'com.github.johnrengelman.shadow' version '6.0.0'
}

String packagePath = 'org.minecast.bedhome'
Expand All @@ -22,7 +22,7 @@ repositories {

dependencies {
compileOnly 'org.spigotmc:spigot-api:1.16.1-R0.1-SNAPSHOT'
compileOnly 'net.milkbowl.vault:VaultAPI:1.6'
implementation 'net.milkbowl.vault:VaultAPI:1.6'
implementation 'org.bstats:bstats-bukkit:1.7'
implementation 'com.github.HeroiCraft:Updater:c026fb8004'
implementation "io.papermc:paperlib:1.0.2"
Expand All @@ -37,10 +37,17 @@ jar {
}

shadowJar {
dependencies {
include dependency('com.github.HeroiCraft:Updater')
include dependency('org.bstats:bstats-bukkit')
include dependency('io.papermc:paperlib')
include dependency('net.milkbowl.vault:VaultAPI')
}
dependencies {
relocate('org.bstats.bukkit', packagePath + '.dependencies.bstats')
relocate('io.papermc.lib', packagePath + 'dependencies.paperlib')
relocate('io.papermc.lib', packagePath + '.dependencies.paperlib')
relocate('net.gravitydevelopment.updater', packagePath + '.dependencies.updater')
relocate('net.milkbowl.vault', packagePath + '.dependencies.vault')
}
archiveClassifier.set(null)
}
Expand Down

0 comments on commit 1d614f3

Please sign in to comment.