Skip to content

Commit

Permalink
Added a server Jar that explicitly excludes mod.
Browse files Browse the repository at this point in the history
Should allow plugin to continue running on servers running old forge.
  • Loading branch information
gravityfox committed Jan 19, 2016
1 parent a5f127b commit cf461e5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ notifications:
before_deploy:
- for f in "./build/libs/FoxCore*SNAPSHOT.jar"; do mv ${f} "./build/libs/FoxCore-${TRAVIS_TAG}-${TRAVIS_BUILD_NUMBER}-SNAPSHOT.jar"; done
- for f in "./build/libs/FoxCore*SNAPSHOT-all.jar"; do mv ${f} "./build/libs/FoxCore-${TRAVIS_TAG}-${TRAVIS_BUILD_NUMBER}-SNAPSHOT-all.jar"; done
- for f in "./build/libs/FoxCore*SNAPSHOT-server.jar"; do mv ${f} "./build/libs/FoxCore-${TRAVIS_TAG}-${TRAVIS_BUILD_NUMBER}-SNAPSHOT-server.jar"; done
- for f in "./build/libs/FoxCore*SNAPSHOT-sources.jar"; do mv ${f} "./build/libs/FoxCore-${TRAVIS_TAG}-${TRAVIS_BUILD_NUMBER}-SNAPSHOT-sources.jar"; done

deploy:
Expand Down
8 changes: 8 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,18 @@ shadowJar {
}
}

task serverJar(type: Jar) {
classifier = 'server'
from(sourceSets.main.output) {
exclude "net/foxdenstudio/sponge/foxcore/mod"
}
}

reobf {
shadowJar { mappingType = 'SEARGE' }
}

artifacts {
archives shadowJar
archives serverJar
}

0 comments on commit cf461e5

Please sign in to comment.