Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Sep 6, 2024
1 parent 1d32f86 commit 032de75
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,32 +52,6 @@ val modJavaVersion: String by extra
val modName: String by extra
val specificationVersion: String by extra

//adds the build number to the end of the version string if on a build server
var buildNumber = project.findProperty("BUILD_NUMBER")
if (buildNumber == null) {
buildNumber = "9999"
}
val stringVersion = "${specificationVersion}.${buildNumber}"

val resourceProperties by ext(mapOf(
"curseHomepageUrl" to curseHomepageUrl,
"fabricApiVersion" to fabricApiVersion,
"fabricLoaderVersion" to fabricLoaderVersion,
"forgeVersionRange" to forgeVersionRange,
"githubUrl" to githubUrl,
"forgeLoaderVersionRange" to forgeLoaderVersionRange,
"neoforgeVersionRange" to neoforgeVersionRange,
"neoforgeLoaderVersionRange" to neoforgeLoaderVersionRange,
"minecraftVersion" to minecraftVersion,
"minecraftVersionRange" to minecraftVersionRange,
"modAuthor" to modAuthor,
"modDescription" to modDescription,
"modId" to modId,
"modJavaVersion" to modJavaVersion,
"modName" to modName,
"version" to stringVersion,
))

spotless {
java {
target("*/src/*/java/mezz/jei/**/*.java")
Expand All @@ -97,6 +71,7 @@ subprojects {
if (buildNumber == null) {
buildNumber = "9999"
}

version = "${specificationVersion}.${buildNumber}"
group = modGroup

Expand Down

0 comments on commit 032de75

Please sign in to comment.