Skip to content

Commit

Permalink
versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewperiut committed Nov 7, 2024
1 parent 3a3eeae commit 42c6363
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
athena-ctm(required){modrinth:b1ZV3DIJ}{curseforge:841890}
chisel-reborn(required)
version-resolver: latest # Defaults to selecting the latest compatible version of Minecraft, using the tag from the fabric.mod.json
game-version-filter: latest # Defaults to selecting the latest compatible version of Minecraft, using the tag from the fabric.mod.json

- name: Upload neoforge artifacts
uses: Kir-Antipov/[email protected]
Expand Down Expand Up @@ -92,4 +92,4 @@ jobs:
athena-ctm(required){modrinth:b1ZV3DIJ}{curseforge:841890}
chisel-reborn(required)
version-resolver: latest # Defaults to selecting the latest compatible version of Minecraft, using the tag from the fabric.mod.json
game-version-filter: latest # Defaults to selecting the latest compatible version of Minecraft, using the tag from the fabric.mod.json
12 changes: 11 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ subprojects {
}
}

def createVersionString() {
def builder = new StringBuilder()

builder.append(mod_version)

builder.append('+mc').append(minecraft_version)

return builder.toString()
}

allprojects {
apply plugin: "java"
apply plugin: "architectury-plugin"
Expand All @@ -35,7 +45,7 @@ allprojects {
archivesName = rootProject.archives_base_name
}

version = rootProject.mod_version
version = createVersionString()
group = rootProject.maven_group

repositories {
Expand Down
4 changes: 4 additions & 0 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ plugins {
id "com.github.johnrengelman.shadow" version "7.1.2"
}

base {
archivesName = "factory_blocks-fabric"
}

architectury {
platformSetupLoomIde()
fabric()
Expand Down
2 changes: 1 addition & 1 deletion fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"depends": {
"fabricloader": ">=0.15.10",
"minecraft": [">=1.21", "<=1.21.1"],
"minecraft": ["~1.21", "~1.21.1"],
"fabric-api": "*"
},
"suggests": {
Expand Down
4 changes: 4 additions & 0 deletions neoforge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ plugins {
id "com.github.johnrengelman.shadow" version "7.1.2"
}

base {
archivesName = "factory_blocks-neoforge"
}

architectury {
platformSetupLoomIde()
neoForge()
Expand Down
6 changes: 3 additions & 3 deletions neoforge/src/main/resources/META-INF/neoforge.mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ Adds Factory Blocks to Chisel Reborn or Chipped
'''
logoFile = "assets/factory_blocks/icon.png"

[[dependencies.chisel]]
[[dependencies.factory_blocks]]
modId="minecraft"
type="required"
versionRange="[1.21,1.21.1]"

[[dependencies.chisel]]
[[dependencies.factory_blocks]]
modId="neoforge"
type="required"
versionRange="[0,)"

[[dependencies.chisel]]
[[dependencies.factory_blocks]]
modId="architectury"
type="required"
versionRange="[0,)"

0 comments on commit 42c6363

Please sign in to comment.