Skip to content

Commit

Permalink
Update build scripts to improve compile times
Browse files Browse the repository at this point in the history
  • Loading branch information
OroArmor committed Jul 31, 2024
1 parent 456bb8a commit 4e7c7b1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ jobs:
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: setup jdk 17
- name: setup jdk 21
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
java-version: 21
- name: build
run: ./gradlew build --no-daemon
- name: capture build artifacts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
java-version: 21
- name: Build and publish with Gradle
run: ./gradlew modrinth publish
env:
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dependencies {
}
*/
modImplementation libs.quilt.loader
modImplementation libs.quilted.fabric.api
modImplementation libs.quilted.fabric.api.resource.loader
}

processResources {
Expand Down
3 changes: 2 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ quilted_fabric_api = "11.0.0-alpha.3+0.100.7-1.21"
minecraft = { module = "com.mojang:minecraft", version.ref = "minecraft" }
quilt_mappings = { module = "org.quiltmc:quilt-mappings", version.ref = "quilt_mappings" }
quilt_loader = { module = "org.quiltmc:quilt-loader", version.ref = "quilt_loader" }
quilted_fabric_api = { module = "org.quiltmc.quilted-fabric-api:quilted-fabric-api", version.ref = "quilted_fabric_api" }

quilted_fabric_api_resource_loader = { module = "org.quiltmc.quilted-fabric-api:fabric-resource-loader-v0", version.ref = "quilted_fabric_api" }

[plugins]
quilt_loom = { id = "org.quiltmc.loom", version = "1.7+" }
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/quilt.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"description": "Renders solar system planets in Minecraft's skybox at night.",
"contributors": {
"woodiertexas": "Author",
"OroArmor": "Contributor",
"gayasslily": "Planet Artist",
"crackers0106": "Planet Artist"
},
Expand All @@ -27,12 +28,11 @@
"versions": ">=0.26.0"
},
{
"id": "quilted_fabric_api",
"versions": ">=5.0.0-"
"id": "quilted_fabric_resource_loader_v0"
},
{
"id": "minecraft",
"versions": ">=1.19.3"
"versions": ">=1.21"
}
]
},
Expand Down

0 comments on commit 4e7c7b1

Please sign in to comment.