Skip to content

Commit

Permalink
Change versioning scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
Earthcomputer committed Mar 23, 2024
1 parent 7314e1c commit f7092d0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
9 changes: 5 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
id 'com.modrinth.minotaur' version '2.+'
}

version = project.mod_version
version = "${project.mod_version}+mc${project.minecraft_version}"
group = project.maven_group

base {
Expand Down Expand Up @@ -88,9 +88,10 @@ dependencies {

processResources {
inputs.property "version", project.version
inputs.property "mcversions", project.fmj_mcversions

filesMatching("fabric.mod.json") {
expand "version": project.version
expand "version": project.version, "mcversions": project.fmj_mcversions
}
}

Expand Down Expand Up @@ -120,7 +121,7 @@ modrinth {
}
projectId = 'viavanillaplus'
uploadFile = remapJar
gameVersions = [project.minecraft_version]
gameVersions.set(project.modrinth_mcversions.split(',').toList())
loaders = ['fabric', 'quilt']
dependencies {
optional.project 'viafabricplus'
Expand All @@ -145,4 +146,4 @@ publishing {
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
}
}
}
6 changes: 4 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@ org.gradle.parallel=true
minecraft_version=1.20.2
yarn_mappings=1.20.2+build.4
loader_version=0.15.2
fmj_mcversions=~1.20.2
modrinth_mcversions=1.20.2

# Mod Properties
mod_version=1.2.0
mod_version=1.2.1
maven_group=net.earthcomputer.viavanillaplus
archives_base_name=viavanillaplus

# Dependencies
carpet_version=1.4.121
fabric_version=0.90.4+1.20.2
viafabricplus_version=2.10.1
viaversion_version=4.9.3-SNAPSHOT
viaversion_version=4.9.3-SNAPSHOT
5 changes: 2 additions & 3 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
],
"depends": {
"fabricloader": ">=0.15.0",
"minecraft": "~1.20.2",
"java": ">=17"
"minecraft": "${mcversions}"
}
}
}

0 comments on commit f7092d0

Please sign in to comment.