From aefda6a38159ef0ec4122615dc36fc96aa7e0445 Mon Sep 17 00:00:00 2001 From: Jonathan Coates Date: Tue, 1 Nov 2022 21:52:49 +0000 Subject: [PATCH 1/2] Fix a couple of issues with the release process Only way to test these is in prod, alas :D: --- build.gradle.kts | 4 +++- .../src/main/kotlin/cc/tweaked/gradle/CCTweakedExtension.kt | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 5691dc3c0..5a8887360 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -364,7 +364,7 @@ val publishCurseForge by tasks.registering(TaskPublishCurseForge::class) { apiToken = findProperty("curseForgeApiKey") ?: "" enabled = apiToken != "" - val mainFile = upload("282001", tasks.shadowJar) + val mainFile = upload("282001", tasks.shadowJar.get().archiveFile) dependsOn(tasks.shadowJar) // Ughr. mainFile.changelog = "Release notes can be found on the [GitHub repository](https://github.com/cc-tweaked/CC-Tweaked/releases/tag/v$mcVersion-$modVersion)." mainFile.changelogType = "markdown" @@ -445,6 +445,8 @@ publishing { repositories { maven("https://squiddev.cc/maven") { name = "SquidDev" + + credentials(PasswordCredentials::class) } } } diff --git a/buildSrc/src/main/kotlin/cc/tweaked/gradle/CCTweakedExtension.kt b/buildSrc/src/main/kotlin/cc/tweaked/gradle/CCTweakedExtension.kt index 51bc297ad..e87d3acab 100644 --- a/buildSrc/src/main/kotlin/cc/tweaked/gradle/CCTweakedExtension.kt +++ b/buildSrc/src/main/kotlin/cc/tweaked/gradle/CCTweakedExtension.kt @@ -26,12 +26,12 @@ abstract class CCTweakedExtension( ) { /** Get the hash of the latest git commit. */ val gitHash: Provider = gitProvider(project, "") { - ProcessHelpers.captureOut("git", "-C", project.projectDir.absolutePath, "rev-parse", "HEAD") + ProcessHelpers.captureOut("git", "-C", project.projectDir.absolutePath, "rev-parse", "HEAD").trim() } /** Get the current git branch. */ val gitBranch: Provider = gitProvider(project, "") { - ProcessHelpers.captureOut("git", "-C", project.projectDir.absolutePath, "rev-parse", "--abbrev-ref", "HEAD") + ProcessHelpers.captureOut("git", "-C", project.projectDir.absolutePath, "rev-parse", "--abbrev-ref", "HEAD").trim() } /** Get a list of all contributors to the project. */ From 1d3ecb551d1a9393a263a01bd4d0e8b47ca8df48 Mon Sep 17 00:00:00 2001 From: Jonathan Coates Date: Wed, 2 Nov 2022 07:58:31 +0000 Subject: [PATCH 2/2] Improvee changelog --- src/main/resources/data/computercraft/lua/rom/help/changelog.md | 2 +- src/main/resources/data/computercraft/lua/rom/help/whatsnew.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/data/computercraft/lua/rom/help/changelog.md b/src/main/resources/data/computercraft/lua/rom/help/changelog.md index adf11b1c9..b6e7db72b 100644 --- a/src/main/resources/data/computercraft/lua/rom/help/changelog.md +++ b/src/main/resources/data/computercraft/lua/rom/help/changelog.md @@ -1,6 +1,6 @@ # New features in CC: Tweaked 1.101.0 -* Improvee Dutch translation (Quezler) +* Improve Dutch translation (Quezler) * Better reporting of fatal computer timeouts in the server log. * Convert detail providers into a registry, allowing peripheral mods to read item/block details. * Redesign the metrics system. `/computercraft track` now allows computing aggregates (total, max, avg) on any metric, not just computer time. diff --git a/src/main/resources/data/computercraft/lua/rom/help/whatsnew.md b/src/main/resources/data/computercraft/lua/rom/help/whatsnew.md index 874b04d8a..6371efeef 100644 --- a/src/main/resources/data/computercraft/lua/rom/help/whatsnew.md +++ b/src/main/resources/data/computercraft/lua/rom/help/whatsnew.md @@ -1,6 +1,6 @@ New features in CC: Tweaked 1.101.0 -* Improvee Dutch translation (Quezler) +* Improve Dutch translation (Quezler) * Better reporting of fatal computer timeouts in the server log. * Convert detail providers into a registry, allowing peripheral mods to read item/block details. * Redesign the metrics system. `/computercraft track` now allows computing aggregates (total, max, avg) on any metric, not just computer time.