From ec7fcef89bf3a86cd70cc411f4faa7c24682f886 Mon Sep 17 00:00:00 2001 From: Deftu Date: Sat, 26 Aug 2023 13:07:04 +0200 Subject: [PATCH] Fix bugs --- gradle.properties | 2 +- .../xyz/deftu/gradle/tools/minecraft/releases.gradle.kts | 3 ++- src/main/kotlin/xyz/deftu/gradle/utils/utils.kt | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index 72afff6..f403a6b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,5 +3,5 @@ kotlin.code.style=official # Project properties project.name=gradle-toolkit -project.version=1.19.1 +project.version=1.19.2 project.group=xyz.deftu.gradle diff --git a/src/main/kotlin/xyz/deftu/gradle/tools/minecraft/releases.gradle.kts b/src/main/kotlin/xyz/deftu/gradle/tools/minecraft/releases.gradle.kts index e88be23..765f61c 100644 --- a/src/main/kotlin/xyz/deftu/gradle/tools/minecraft/releases.gradle.kts +++ b/src/main/kotlin/xyz/deftu/gradle/tools/minecraft/releases.gradle.kts @@ -9,6 +9,7 @@ import xyz.deftu.gradle.MCData import xyz.deftu.gradle.ModData import xyz.deftu.gradle.utils.* import java.nio.charset.StandardCharsets +import java.util.* plugins { java @@ -82,7 +83,7 @@ fun ReleasingExtension.getUploadFile() = file.getOrElse(tasks.named - if (capitalized) loader.capitalize() else loader + if (capitalized) loader.replaceFirstChar { if (it.isLowerCase()) it.titlecase(Locale.US) else it.toString() } else loader } fun ReleasingExtension.getVersionType() = versionType.getOrElse(VersionType.RELEASE) diff --git a/src/main/kotlin/xyz/deftu/gradle/utils/utils.kt b/src/main/kotlin/xyz/deftu/gradle/utils/utils.kt index bf8d354..3186c2d 100644 --- a/src/main/kotlin/xyz/deftu/gradle/utils/utils.kt +++ b/src/main/kotlin/xyz/deftu/gradle/utils/utils.kt @@ -75,7 +75,7 @@ fun Project.propertyOr( } fun Project.getFixedSourcesJarTask() = if (isLoomPresent()) { - tasks.named("remapSources") + tasks.named("remapSourcesJar") } else { tasks.named("sourcesJar") }