Skip to content

Commit

Permalink
Bring up to speed with the OneConfig example mod
Browse files Browse the repository at this point in the history
  • Loading branch information
Deftu committed Jan 2, 2025
1 parent abeee21 commit c752191
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 22 deletions.
54 changes: 34 additions & 20 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,47 @@
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
# Build Workflow

name: Java CI with Gradle
name: Build with Gradle

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
push:

concurrency:
group: ${{ github.head_ref || format('{0}-{1}', github.ref, github.run_number) }}
cancel-in-progress: true

jobs:
build:
name: Build

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 10

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'adopt'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Setup Forge Workspace
run: ./gradlew setupCIWorkspace
- name: Build with Gradle
run: ./gradlew build
- name: Upload a Build Artifact
uses: actions/[email protected]
java-version: 21
distribution: temurin

- uses: actions/cache@v4
with:
path: ./build/libs/
path: |
~/.gradle/caches
~/.gradle/wrapper
**/loom-cache
**/prebundled-jars
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Chmod Gradle
run: chmod +x ./gradlew

- name: Build
run: ./gradlew build --no-daemon
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ plugins {

toolkitLoomHelper {
useOneConfig {
version = "1.0.0-alpha.47"
loaderVersion = "1.1.0-alpha.34"
version = "1.0.0-alpha.49"
loaderVersion = "1.1.0-alpha.35"

usePolyMixin = true
polyMixinVersion = "0.8.4+build.2"
Expand Down
2 changes: 2 additions & 0 deletions root.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ preprocess {
}
}
}

strictExtraMappings.set(true)
}

0 comments on commit c752191

Please sign in to comment.