From 2d1b3c535f1354f4cfa0321c92c71c3200f0c9f9 Mon Sep 17 00:00:00 2001
From: modmuss50 <modmuss50@gmail.com>
Date: Tue, 28 Jun 2022 20:38:10 +0100
Subject: [PATCH] Enable parallel builds by default. Update remotesign to a
 parallel capable version. Set org.gradle.parallel.threads in actions as we
 are IO bound.

---
 .github/workflows/build.yml   | 2 +-
 .github/workflows/release.yml | 2 +-
 build.gradle                  | 2 +-
 gradle.properties             | 1 +
 4 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index a30174eaf..c383ac052 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -14,7 +14,7 @@ jobs:
         with:
           fetch-depth: 0
       - uses: gradle/wrapper-validation-action@v1
-      - run: ./gradlew check build publishToMavenLocal --stacktrace --parallel --warning-mode=fail
+      - run: ./gradlew check build publishToMavenLocal --stacktrace --warning-mode=fail -Porg.gradle.parallel.threads=4
       - run: mkdir run && echo "eula=true" >> run/eula.txt
       - run: ./gradlew runAutoTestServer --stacktrace --warning-mode=fail
       - uses: actions/upload-artifact@v2
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 76c4a20e9..3c01c2620 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -22,7 +22,7 @@ jobs:
           context: changelog
           workflow_id: release.yml
       - uses: gradle/wrapper-validation-action@v1
-      - run: ./gradlew checkVersion build publish curseforge github modrinth --stacktrace
+      - run: ./gradlew checkVersion build publish curseforge github modrinth --stacktrace -Porg.gradle.parallel.threads=4
         env:
           MAVEN_URL: ${{ secrets.MAVEN_URL }}
           MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
diff --git a/build.gradle b/build.gradle
index 90628e222..c1ad373ad 100644
--- a/build.gradle
+++ b/build.gradle
@@ -14,7 +14,7 @@ plugins {
 	id "org.ajoberstar.grgit" version "3.1.0"
 	id "com.matthewprenger.cursegradle" version "1.4.0"
 	id "com.modrinth.minotaur" version "1.1.0"
-	id "me.modmuss50.remotesign" version "0.2.4" apply false
+	id "me.modmuss50.remotesign" version "0.3.0" apply false
 }
 
 def ENV = System.getenv()
diff --git a/gradle.properties b/gradle.properties
index f20251ac0..62067304b 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,4 +1,5 @@
 org.gradle.jvmargs=-Xmx2560M
+org.gradle.parallel=true
 
 version=0.57.0
 minecraft_version=1.18.2