From 9152c1a5ca24b01907a0d3e654b22c1b001db047 Mon Sep 17 00:00:00 2001 From: makamys Date: Thu, 19 Oct 2023 09:51:42 +0200 Subject: [PATCH] Don't build alternate flavors by default Because I'm tired of having to append -PnoAltMixin to the command every time --- .github/workflows/release.yml | 2 +- README.md | 2 +- module-mixin/build.gradle | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c616ebf..3642aec 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,7 +34,7 @@ jobs: - name: Set up Gradle build run: ./gradlew setupCIWorkspace - name: Build with Gradle - run: ./gradlew build -PnoAltMixin + run: ./gradlew build - name: Copy artifacts to a single directory run: | mkdir build/tmp/ci -p diff --git a/README.md b/README.md index fccdc9b..43b732e 100644 --- a/README.md +++ b/README.md @@ -121,7 +121,7 @@ When editing the source code of modules, please document your changes in the mod ### Build flags * `-Plocal`: use the locally built version of `unimix` when building the Mixin module. * Invoke `./gradlew publishToMavenLocal` in the UniMix repo first to install a local build. -* `-PnoAltMixin`: do not build alternate flavors of the Mixin module, only UniMix. Used by the release workflow. +* `-PenableAltMixin`: build alternate flavors of the Mixin module, not just UniMix. ### Roadmap diff --git a/module-mixin/build.gradle b/module-mixin/build.gradle index 6e559b6..0b9ada8 100644 --- a/module-mixin/build.gradle +++ b/module-mixin/build.gradle @@ -26,7 +26,7 @@ dependencies { apply plugin: "com.github.johnrengelman.shadow" -def flavors = (project.hasProperty("noAltMixin") ? [] : ["spongepowered", "fabric", "gasmix", "gtnh"]) + ["unimix"] +def flavors = (!project.hasProperty("enableAltMixin") ? [] : ["spongepowered", "fabric", "gasmix", "gtnh"]) + ["unimix"] flavors.each { def mixinFlavor = it