Skip to content

Commit

Permalink
Don't build alternate flavors by default
Browse files Browse the repository at this point in the history
Because I'm tired of having to append -PnoAltMixin to the command
every time
  • Loading branch information
makamys committed Oct 19, 2023
1 parent 28e98d5 commit 9152c1a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion module-mixin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9152c1a

Please sign in to comment.