diff --git a/.gitea/workflows/check.yml b/.gitea/workflows/check.yml index a717756..eaa48a3 100644 --- a/.gitea/workflows/check.yml +++ b/.gitea/workflows/check.yml @@ -17,8 +17,11 @@ jobs: with: submodules: true + # The JDK comes from the runner's tool cache. `cache: gradle` stores Gradle's + # dependencies, Loom's Minecraft cache and the build cache in the runner's + # actions cache. - name: Set up Java 21 - uses: actions/setup-java@v4 + uses: actions/setup-java@v5 with: distribution: temurin java-version: 21 diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index f7afbf3..275c4d9 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -44,8 +44,11 @@ jobs: fi echo "Building Saturn Client $MOD_VERSION" + # The JDK comes from the runner's tool cache. `cache: gradle` stores Gradle's + # dependencies, Loom's Minecraft cache and the build cache in the runner's + # actions cache. - name: Set up Java 21 - uses: actions/setup-java@v4 + uses: actions/setup-java@v5 with: distribution: temurin java-version: 21 diff --git a/gradle.properties b/gradle.properties index b21030b..6a66e33 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,7 @@ org.gradle.jvmargs=-Xmx3G org.gradle.parallel=true +# Reuse task outputs (e.g. compiled classes) when inputs haven't changed. +org.gradle.caching=true # IntelliJ IDEA is not yet fully compatible with configuration cache, see: https://github.com/FabricMC/fabric-loom/issues/1349 org.gradle.configuration-cache=false