Skip to content

Commit 6d748d3

Browse files
committed
Fix sponge shadow configuration and fabric jar name
1 parent 8b5b6da commit 6d748d3

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Plan/fabric/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ tasks.named("shadowJar", ShadowJar) {
118118
mergeServiceFiles()
119119

120120
destinationDirectory.set(file("$rootDir/builds/"))
121-
archiveBaseName.set("PlanFabric")
121+
archiveFileName.set("PlanFabric-${project.version}.jar")
122122
}
123123

124124
tasks.assemble.dependsOn tasks.shadowJar

Plan/plugin/build.gradle

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
2-
31
plugins {
42
id "io.papermc.hangar-publish-plugin" version "0.1.4"
53
id "org.spongepowered.gradle.ore" version "2.3.0"
@@ -15,7 +13,7 @@ dependencies {
1513
implementation project(":common")
1614
implementation project(":bukkit")
1715
implementation project(":nukkit")
18-
implementation project(":sponge")
16+
implementation project(path: ":sponge", configuration: "shadow")
1917
implementation project(":bungeecord")
2018
// Shadow configuration required to depend on Velocity due to newer Java version
2119
implementation project(path: ":velocity", configuration: "shadow")
@@ -33,7 +31,7 @@ jar {
3331
'MixinConfigs': 'plan-sponge.mixins.json'
3432
])
3533
}
36-
tasks.named("shadowJar", ShadowJar) {
34+
shadowJar {
3735
// Exclude these files
3836
exclude "**/*.svg"
3937
exclude "**/*.psd"

0 commit comments

Comments
 (0)