diff --git a/build.gradle b/build.gradle index cbcc135..b6391d1 100644 --- a/build.gradle +++ b/build.gradle @@ -48,6 +48,7 @@ repositories { configurations { spongevanilla + spongeforge } dependencies { @@ -59,6 +60,7 @@ dependencies { implementation 'net.smoofyuniverse:worldmap:1.1.0' spongevanilla 'org.spongepowered:spongevanilla:1.16.5-8.1.0-RC1185:universal' + spongeforge 'org.spongepowered:spongeforge:1.16.5-36.2.5-8.1.0-RC1185:universal' } minecraft { @@ -97,3 +99,12 @@ task setupVanillaServer(type: Copy) { from shadowJar } } + +task setupForgeServer(type: Copy) { + into 'run/forge/mods' + + from configurations.spongeforge + rename('spongeforge-(.*).jar', 'spongeforge.jar') + + from shadowJar +}