File tree Expand file tree Collapse file tree 7 files changed +21
-74
lines changed
Expand file tree Collapse file tree 7 files changed +21
-74
lines changed Original file line number Diff line number Diff line change 2626 with :
2727 cache-read-only : false
2828
29- - name : Setup chiseled build # Required to set up access wideners properly
30- run : ./gradlew setupChiseledBuild
31-
3229 - name : Build
33- run : ./gradlew chiseledBuild
30+ run : ./gradlew build
3431
3532 - name : Upload Build Artifacts
3633 uses : actions/upload-artifact@v4
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -13,20 +13,13 @@ or [CurseForge](https://www.curseforge.com/minecraft/mc-mods/resourcify) page.
1313
1414# Building
1515
16- Resourcify uses stonecutter to compile against multiple Minecraft versions and loaders at once, this changes a bit about
17- how the mod is built. For more info about stonecutter, see their [ wiki] ( https://stonecutter.kikugie.dev/ ) .
16+ Resourcify uses stonecutter to compile against multiple Minecraft versions and loaders at once. For more info about
17+ stonecutter, see their [ wiki] ( https://stonecutter.kikugie.dev/ ) .
1818
19- Before your first build you need to run the following command to put the access wideners in the correct places, you will
20- need to run this every time you update an access widener.
19+ To build the mod run the following command, the mod jars will be in the ` jars ` folder after the build has finished.
2120
2221``` shell
23- ./gradlew setupChiseledBuild
24- ```
25-
26- Then to build the mod run the following command, the mod jars will be in the ` jars ` folder after the build has finished.
27-
28- ``` shell
29- ./gradlew chiseledBuild
22+ ./gradlew build
3023```
3124
3225------------------------------------
Original file line number Diff line number Diff line change @@ -50,14 +50,14 @@ repositories {
5050}
5151
5252stonecutter {
53- const( " fabric" , mcPlatform.isFabric)
54- const( " forge" , mcPlatform.isForge)
55- const( " neoforge" , mcPlatform.isNeoForge)
56- const( " forgelike" , mcPlatform.isForgeLike)
57-
58- swap( " mod_name" , " \" $mod_name \" " )
59- swap( " mod_id" , " \" $mod_id \" " )
60- swap( " mod_version" , " \" $mod_version \" " )
53+ constants[ " fabric" ] = mcPlatform.isFabric
54+ constants[ " forge" ] = mcPlatform.isForge
55+ constants[ " neoforge" ] = mcPlatform.isNeoForge
56+ constants[ " forgelike" ] = mcPlatform.isForgeLike
57+
58+ swaps[ " mod_name" ] = " \" $mod_name \" "
59+ swaps[ " mod_id" ] = " \" $mod_id \" "
60+ swaps[ " mod_version" ] = " \" $mod_version \" "
6161}
6262
6363val shade: Configuration by configurations.creating {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ pluginManagement {
2727}
2828
2929plugins {
30- id(" dev.kikugie.stonecutter" ) version " 0.6.1 "
30+ id(" dev.kikugie.stonecutter" ) version " 0.7 "
3131}
3232
3333val platforms = listOf (
Original file line number Diff line number Diff line change @@ -21,25 +21,12 @@ plugins {
2121}
2222stonecutter active " 1.21.6-fabric" /* [SC] DO NOT EDIT */
2323
24- stonecutter registerChiseled tasks.register(" chiseledBuild" , stonecutter.chiseled) {
25- group = " project"
26- ofTask(" build" )
27- }
28-
29- stonecutter registerChiseled tasks.register(" chiseledPublishMods" , stonecutter.chiseled) {
30- group = " project"
31- ofTask(" publishMods" )
32- }
33-
34- for (ver in stonecutter.versions) {
35- stonecutter registerChiseled tasks.register(" build-${ver.project} " , stonecutter.chiseled) {
36- versions { _, it -> it == ver }
37- group = " project"
38- ofTask(" build" )
39- }
40- stonecutter registerChiseled tasks.register(" publish-${ver.project} " , stonecutter.chiseled) {
41- versions { _, it -> it == ver }
42- group = " project"
43- ofTask(" publishMods" )
24+ stonecutter tasks {
25+ val ordering = versionComparator.thenComparingInt {
26+ if (it.metadata.project.endsWith(" fabric" )) 2
27+ else if (it.metadata.project.endsWith(" neoforge" )) 1
28+ else 0
4429 }
30+ order(" publishModrinth" , ordering)
31+ order(" publishCurseforge" , ordering)
4532}
You can’t perform that action at this time.
0 commit comments