diff --git a/build.gradle b/build.gradle index 2a9f6fdb2..cdd5211c0 100644 --- a/build.gradle +++ b/build.gradle @@ -39,6 +39,11 @@ archivesBaseName = config.archivesBaseName // If TeamCity is running this build, lets set the version info if (hasProperty("teamcity")) { version = teamcity["build.number"] + + // Fix for main branch being built + if (teamcity.build.branch.is_default) { + version = version.replaceAll("/", "-") + } } // Add Coremod Manifest