File names now end with minecraft minor version and should not contain patch id.

This commit is contained in:
szymon 2020-12-25 19:34:36 +01:00
parent c344e01c26
commit acba0d0cb8

View File

@ -7,7 +7,7 @@ sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
archivesBaseName = project.archives_base_name
version = "${project.mod_version}-${project.minecraft_version}"
version = "${project.mod_version}-${getMcMinor(project.minecraft_version)}"
group = project.maven_group
minecraft {
@ -95,3 +95,9 @@ publishing {
// mavenLocal()
}
}
static def getMcMinor(ver) {
String[] arr = ((String)ver).split("\\.");
return (String)(arr[0] + "." + arr[1]);
}