Skip to content

Commit 42c6363

Browse files
committed
versioning
1 parent 3a3eeae commit 42c6363

File tree

6 files changed

+25
-7
lines changed

6 files changed

+25
-7
lines changed

.github/workflows/build-release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
athena-ctm(required){modrinth:b1ZV3DIJ}{curseforge:841890}
6464
chisel-reborn(required)
6565
66-
version-resolver: latest # Defaults to selecting the latest compatible version of Minecraft, using the tag from the fabric.mod.json
66+
game-version-filter: latest # Defaults to selecting the latest compatible version of Minecraft, using the tag from the fabric.mod.json
6767

6868
- name: Upload neoforge artifacts
6969
uses: Kir-Antipov/mc-publish@v3.3
@@ -92,4 +92,4 @@ jobs:
9292
athena-ctm(required){modrinth:b1ZV3DIJ}{curseforge:841890}
9393
chisel-reborn(required)
9494
95-
version-resolver: latest # Defaults to selecting the latest compatible version of Minecraft, using the tag from the fabric.mod.json
95+
game-version-filter: latest # Defaults to selecting the latest compatible version of Minecraft, using the tag from the fabric.mod.json

build.gradle

+11-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@ subprojects {
2626
}
2727
}
2828

29+
def createVersionString() {
30+
def builder = new StringBuilder()
31+
32+
builder.append(mod_version)
33+
34+
builder.append('+mc').append(minecraft_version)
35+
36+
return builder.toString()
37+
}
38+
2939
allprojects {
3040
apply plugin: "java"
3141
apply plugin: "architectury-plugin"
@@ -35,7 +45,7 @@ allprojects {
3545
archivesName = rootProject.archives_base_name
3646
}
3747

38-
version = rootProject.mod_version
48+
version = createVersionString()
3949
group = rootProject.maven_group
4050

4151
repositories {

fabric/build.gradle

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ plugins {
22
id "com.github.johnrengelman.shadow" version "7.1.2"
33
}
44

5+
base {
6+
archivesName = "factory_blocks-fabric"
7+
}
8+
59
architectury {
610
platformSetupLoomIde()
711
fabric()

fabric/src/main/resources/fabric.mod.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"depends": {
2727
"fabricloader": ">=0.15.10",
28-
"minecraft": [">=1.21", "<=1.21.1"],
28+
"minecraft": ["~1.21", "~1.21.1"],
2929
"fabric-api": "*"
3030
},
3131
"suggests": {

neoforge/build.gradle

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ plugins {
22
id "com.github.johnrengelman.shadow" version "7.1.2"
33
}
44

5+
base {
6+
archivesName = "factory_blocks-neoforge"
7+
}
8+
59
architectury {
610
platformSetupLoomIde()
711
neoForge()

neoforge/src/main/resources/META-INF/neoforge.mods.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ Adds Factory Blocks to Chisel Reborn or Chipped
1313
'''
1414
logoFile = "assets/factory_blocks/icon.png"
1515

16-
[[dependencies.chisel]]
16+
[[dependencies.factory_blocks]]
1717
modId="minecraft"
1818
type="required"
1919
versionRange="[1.21,1.21.1]"
2020

21-
[[dependencies.chisel]]
21+
[[dependencies.factory_blocks]]
2222
modId="neoforge"
2323
type="required"
2424
versionRange="[0,)"
2525

26-
[[dependencies.chisel]]
26+
[[dependencies.factory_blocks]]
2727
modId="architectury"
2828
type="required"
2929
versionRange="[0,)"

0 commit comments

Comments
 (0)