Skip to content

Commit

Permalink
Fix shadow problems which reduce the jar size by alot
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueTree242 committed Mar 22, 2024
1 parent 308e764 commit eea02d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ rootProject.allprojects {
plugins.apply("java")
plugins.apply("com.github.johnrengelman.shadow")
tasks.shadowJar {
archiveClassifier.set("")
if (project != rootProject) archiveBaseName = "AdvancedPlHide-" + project.name
if (project != project(":core")) archiveClassifier.set("")
val prefix = "dev.bluetree242.advancedplhide.dependencies"
relocate("space.arim.dazzleconf", "$prefix.dazzleconf")
relocate("org.yaml.snakeyaml", "$prefix.yaml")
Expand Down
6 changes: 3 additions & 3 deletions spigot/modern/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ repositories {

subprojects {
dependencies {
implementation(project(":spigot:modern"))
implementation(project(":core"))
compileOnly(project(":spigot:modern"))
compileOnly(project(":core"))
compileOnly(rootProject.libs.protocolLib)
}
repositories {
Expand All @@ -36,6 +36,6 @@ subprojects {
}

dependencies {
implementation(project(":core"))
compileOnly(project(":core"))
compileOnly(libs.protocolLib)
}

0 comments on commit eea02d6

Please sign in to comment.