diff --git a/build.gradle b/build.gradle index 74b3c56..aba1411 100644 --- a/build.gradle +++ b/build.gradle @@ -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 { @@ -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 } } @@ -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' @@ -145,4 +146,4 @@ publishing { // The repositories here will be used for publishing your artifact, not for // retrieving dependencies. } -} \ No newline at end of file +} diff --git a/gradle.properties b/gradle.properties index 47b745f..884e05f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,9 +7,11 @@ 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 @@ -17,4 +19,4 @@ archives_base_name=viavanillaplus carpet_version=1.4.121 fabric_version=0.90.4+1.20.2 viafabricplus_version=2.10.1 -viaversion_version=4.9.3-SNAPSHOT \ No newline at end of file +viaversion_version=4.9.3-SNAPSHOT diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 4ffa066..588b81f 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -31,7 +31,6 @@ ], "depends": { "fabricloader": ">=0.15.0", - "minecraft": "~1.20.2", - "java": ">=17" + "minecraft": "${mcversions}" } -} \ No newline at end of file +}