Skip to content

Commit

Permalink
Add setupForgeServer gradle task
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeregorix committed Sep 5, 2022
1 parent 2cf175b commit cace73a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ repositories {

configurations {
spongevanilla
spongeforge
}

dependencies {
Expand All @@ -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 {
Expand Down Expand Up @@ -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
}

0 comments on commit cace73a

Please sign in to comment.