Skip to content

Commit

Permalink
please work :(
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysdh540 committed Oct 16, 2023
1 parent 96d3d7b commit 7251cf9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-multiver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.gradle/loom-cache
key: loom-cache-${{ runner.os }}-gradle-${{ hashFiles('~/.gradle/loom-cache/**') }}
key: loom-cache-${{ runner.os }}-gradle-${{ hashFiles('**/gradle-wrapper.properties') }}
restore-keys: loom-cache-${{ runner.os }}-gradle

- name: give scripts execution permissions
Expand Down
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ subprojects {
remapJar.finalizedBy(mergeJars)
}

tasks.register("moveJars", AbstractCopyTask) {
subprojects.each {
from it.buildDir.toPath().resolve("libs").toFile().listFiles()
into rootProject.file("artifacts/${rootProject.mcVer}")
}
}

allprojects {
apply plugin: 'java'

Expand Down
3 changes: 1 addition & 2 deletions buildAll
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ for d in versionProperties/*; do
sh gradlew assemble -PmcVer="$version" || true
echo "=============================================================== Moving jars ==============================================================="
echo ''
mv "./forge/build/libs/*" "./artifacts/$version/" || true
mv "./fabric/build/libs/*" "./artifacts/$version/" || true
sh gradlew moveJars -PmcVer="$version" || true
echo ''
done

0 comments on commit 7251cf9

Please sign in to comment.