mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 18:57:32 +00:00
Merge pull request #69 from drori200/split-releases
Split releases to have a release without mixin embedded Add Mixin-less Run
This commit is contained in:
2 files changed
+49
-7
No files matched your search
@@ -0,0 +1,25 @@
|
||||
name: Java CI with Gradle
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up JDK 1.8
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 1.8
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x gradlew
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew SetupCIWorkspace build
|
||||
- name: Build with Gradle (nomixin)
|
||||
run: ./gradlew build -Pnomixin
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Package
|
||||
path: build/libs
|
||||
+24
-7
@@ -87,9 +87,15 @@ jar {
|
||||
//Add
|
||||
//--tweakClass org.spongepowered.asm.launch.MixinTweaker --mixin customnpcs.mixins.json
|
||||
//to your client and server program arguments if working in a dev environment.
|
||||
def embedMixin = !project.hasProperty("nomixin");
|
||||
def yourMixinConfig = 'customnpcs.mixins.json'
|
||||
def refMapForYourConfig = 'customnpcs.refmap.json'
|
||||
def relativePathToMixinAP = 'tools/mixin-0.8-SNAPSHOT.jar'
|
||||
|
||||
if(!embedMixin){
|
||||
version += "+nomixin"
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
name = "sponge"
|
||||
@@ -98,13 +104,24 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
embed('org.spongepowered:mixin:0.7.11-SNAPSHOT') {
|
||||
// Mixin includes a lot of dependencies that are too up-to-date
|
||||
exclude module: 'launchwrapper'
|
||||
exclude module: 'guava'
|
||||
exclude module: 'gson'
|
||||
exclude module: 'commons-io'
|
||||
exclude module: 'log4j-core'
|
||||
if(embedMixin){
|
||||
embed('org.spongepowered:mixin:0.7.11-SNAPSHOT') {
|
||||
// Mixin includes a lot of dependencies that are too up-to-date
|
||||
exclude module: 'launchwrapper'
|
||||
exclude module: 'guava'
|
||||
exclude module: 'gson'
|
||||
exclude module: 'commons-io'
|
||||
exclude module: 'log4j-core'
|
||||
}
|
||||
} else {
|
||||
implementation('org.spongepowered:mixin:0.7.11-SNAPSHOT') {
|
||||
// Mixin includes a lot of dependencies that are too up-to-date
|
||||
exclude module: 'launchwrapper'
|
||||
exclude module: 'guava'
|
||||
exclude module: 'gson'
|
||||
exclude module: 'commons-io'
|
||||
exclude module: 'log4j-core'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user