Skip to content

Commit

Permalink
Replace hardcoded minecraft version by catalog one
Browse files Browse the repository at this point in the history
  • Loading branch information
IotaBread committed Jun 22, 2024
1 parent 701efef commit 29d5fb3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ base {

group = project.maven_group

version = "${project.mod_version}+${libs.versions.minecraft.get()}"
var mcVersion = libs.versions.minecraft.get()
version = "${project.mod_version}+${mcVersion}"
boolean isBuild = System.getenv('GITHUB_WORKFLOW') == 'build'
version = !isBuild ? version : "${version}+build.${System.getenv('GITHUB_RUN_NUMBER')}"

Expand Down Expand Up @@ -84,10 +85,10 @@ modrinth {
token = project.hasProperty('modrinth_token') ? project.property('modrinth_token') : System.getenv('MODRINTH_TOKEN')
projectId = '1E2sq1cp'
versionNumber = project.version
versionName = "VTDownloader ${project.mod_version} for Minecraft 1.20.6"
versionName = "VTDownloader ${project.mod_version} for Minecraft ${mcVersion}"
uploadFile = remapJar
changelog = "A changelog can be found at https://github.com/IotaBread/VTDownloader/releases/tag/${project.mod_version}"
gameVersions = ['1.20.6']
gameVersions = [mcVersion]
loaders = ['fabric', 'quilt']
}

Expand All @@ -99,11 +100,11 @@ curseforge {
id = '432425'
changelog = "A changelog can be found at https://github.com/IotaBread/VTDownloader/releases/tag/${project.mod_version}"
releaseType = 'release'
addGameVersion '1.20.6'
addGameVersion mcVersion
addGameVersion 'Fabric'
addGameVersion 'Quilt'
mainArtifact(remapJar) {
displayName = "VTDownloader ${project.mod_version} for Minecraft 1.20.6"
displayName = "VTDownloader ${project.mod_version} for Minecraft ${mcVersion}"
}
afterEvaluate {
uploadTask.dependsOn('remapJar')
Expand Down

0 comments on commit 29d5fb3

Please sign in to comment.