diff --git a/CHANGELOG.md b/CHANGELOG.md index fd32a7bf3c..da1381ff67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file ## [Unreleased] +## [1.23.0] - 2026-09-21 + +### Fixed + +- Corrected requireNotNull ordering in VersioningPlugin so null checks work as intended + ## [1.22.0] - 2026-09-21 ### Added diff --git a/app/version.properties b/app/version.properties index 618570160e..f257882803 100644 --- a/app/version.properties +++ b/app/version.properties @@ -2,4 +2,4 @@ # This file was automatically generated by 'versioning-plugin'. DO NOT EDIT MANUALLY. # versioning-plugin.versionCode=12300 -versioning-plugin.versionName=1.23.0-SNAPSHOT +versioning-plugin.versionName=1.23.0 diff --git a/build-logic/src/main/kotlin/app/passwordstore/gradle/ApplicationPlugin.kt b/build-logic/src/main/kotlin/app/passwordstore/gradle/ApplicationPlugin.kt index 088dba6187..96f2ea93e5 100644 --- a/build-logic/src/main/kotlin/app/passwordstore/gradle/ApplicationPlugin.kt +++ b/build-logic/src/main/kotlin/app/passwordstore/gradle/ApplicationPlugin.kt @@ -54,12 +54,4 @@ class ApplicationPlugin : Plugin { project.configureBuildSigning() } } - - private fun Project.isSnapshot(): Boolean { - with(providers) { - val workflow = environmentVariable("GITHUB_WORKFLOW") - val snapshot = environmentVariable("SNAPSHOT") - return workflow.isPresent || snapshot.isPresent - } - } } diff --git a/build-logic/src/main/kotlin/app/passwordstore/gradle/psl/PSLUpdateTask.kt b/build-logic/src/main/kotlin/app/passwordstore/gradle/psl/PSLUpdateTask.kt index 2fc792b555..6fea625723 100644 --- a/build-logic/src/main/kotlin/app/passwordstore/gradle/psl/PSLUpdateTask.kt +++ b/build-logic/src/main/kotlin/app/passwordstore/gradle/psl/PSLUpdateTask.kt @@ -75,7 +75,7 @@ abstract class PSLUpdateTask : DefaultTask() { @Suppress("TooGenericExceptionThrown", "ThrowsCount") private fun assertWildcardRule(rule: String) { if (rule.indexOf(WILDCARD_CHAR) != 0) { - throw RuntimeException("Wildcard is not not in leftmost position") + throw RuntimeException("Wildcard is not in leftmost position") } if (rule.indexOf(WILDCARD_CHAR, 1) != -1) { diff --git a/build-logic/src/main/kotlin/app/passwordstore/gradle/versioning/VersioningPlugin.kt b/build-logic/src/main/kotlin/app/passwordstore/gradle/versioning/VersioningPlugin.kt index 0a13318180..7c0c50a2c3 100644 --- a/build-logic/src/main/kotlin/app/passwordstore/gradle/versioning/VersioningPlugin.kt +++ b/build-logic/src/main/kotlin/app/passwordstore/gradle/versioning/VersioningPlugin.kt @@ -20,8 +20,8 @@ import org.gradle.kotlin.dsl.withType /** * A Gradle [Plugin] that takes a [Project] with the [AppPlugin] applied and dynamically sets the * versionCode and versionName properties based on values read from a [VERSIONING_PROP_FILE] file in - * the [Project.getBuildDir] directory. It also adds Gradle tasks to bump the major, minor, and - * patch versions along with one to prepare the next snapshot. + * the project directory. It also adds Gradle tasks to bump the major, minor, and patch versions + * along with one to prepare the next snapshot. */ @Suppress("Unused") class VersioningPlugin : Plugin {