Skip to content

Commit

Permalink
feat(Minecraft): Shade minecraft classes to one jar
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeV220 committed Jan 22, 2023
1 parent 14b52fa commit 08f03ae
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions minecraft/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
apply from: "$rootDir/gradle/publish.gradle"
group 'com.georgev22.library'

dependencies {
implementation project(path: ':minecraft:bukkit')
implementation project(path: ':minecraft:bungee')
implementation project(path: ':minecraft:velocity')
implementation project(path: ':minecraft:sponge8')
}

shadowJar {
classifier = ''
exclude("de/tr7zw/nbtapi/plugin/**")
exclude("plugin.yml")
relocate 'de.tr7zw', 'com.georgev22.library.minecraft.nbt'
relocate 'com.cryptomorin.xseries', 'com.georgev22.library.minecraft.xseries'
}

tasks.build.dependsOn(shadowJar)
tasks.publish.dependsOn(shadowJar)

0 comments on commit 08f03ae

Please sign in to comment.