From 45b4d3d53411326f4864e5f1293f7175ce9e681b Mon Sep 17 00:00:00 2001 From: tonisives Date: Wed, 29 Nov 2023 07:14:02 +0700 Subject: [PATCH 1/2] add brands --- .../com/highmobility/hmkitfleet/model/Brand.kt | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/hmkit-fleet/src/main/kotlin/com/highmobility/hmkitfleet/model/Brand.kt b/hmkit-fleet/src/main/kotlin/com/highmobility/hmkitfleet/model/Brand.kt index bed0e44..cde1605 100644 --- a/hmkit-fleet/src/main/kotlin/com/highmobility/hmkitfleet/model/Brand.kt +++ b/hmkit-fleet/src/main/kotlin/com/highmobility/hmkitfleet/model/Brand.kt @@ -50,9 +50,18 @@ enum class Brand { @SerialName("lexus") LEXUS, - @SerialName("sandbox") - SANDBOX, + @SerialName("porsche") + PORSCHE, + + @SerialName("maserati") + MASERATI, + + @SerialName("kia") + KIA, @SerialName("tesla") TESLA, + + @SerialName("sandbox") + SANDBOX, } From ffcad919b734919c247935b583514c7eed9396ee Mon Sep 17 00:00:00 2001 From: tonisives Date: Wed, 29 Nov 2023 07:19:49 +0700 Subject: [PATCH 2/2] update version --- .github/workflows/update-version.yml | 11 ++++++----- CHANGELOG.md | 6 ++++++ gradle.properties | 2 +- gradle/deploy-process.md | 27 ++++++++++++++------------- 4 files changed, 27 insertions(+), 19 deletions(-) diff --git a/.github/workflows/update-version.yml b/.github/workflows/update-version.yml index e21b710..7740f34 100644 --- a/.github/workflows/update-version.yml +++ b/.github/workflows/update-version.yml @@ -1,11 +1,12 @@ name: Update version on: - pull_request: - types: - - closed - branches: - - main +# disabled until we don't support v0 and v1 anymore. Read more: `./gradle/deploy-process.md` +# pull_request: +# types: +# - closed +# branches: +# - main jobs: create-new-tag: diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b4216e..d4547e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ This is the changelog for v2 releases. See v0/v1 releases in appropriate branches. +## [2.0.1] - 2023-11-29 + +### Added + +- Porsche, Maserati and Kia brands + ## [2.0.0] - 2023-16-11 ### Added diff --git a/gradle.properties b/gradle.properties index a537bcf..de8fd8f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ -version=2.0.0 +version=2.0.1 kotlin.code.style=official \ No newline at end of file diff --git a/gradle/deploy-process.md b/gradle/deploy-process.md index 918076f..ca317ca 100644 --- a/gradle/deploy-process.md +++ b/gradle/deploy-process.md @@ -2,22 +2,15 @@ Release is done via a merged pull request to main/v0/v1 and then creating a release in GitHub UI. -## Steps for v2 -- update CHANGELOG.md - - next version is with minor +1, or the manually updated version -- merge a pull request to main. This creates a new tag with minor +=1. - - optionally set a new major/minor version in `gradle.properties` before merging. Then the tag is created according to this manual version. Otherwise, patch number is incremented automatically. -- create a release from this tag in GitHub. Use `Generate release notes` - - Action starts that pushes the package to MavenCentral. - - You can check OSSRH whether release was successful or not. - -## Steps for v0 and v1 +## Steps for v0, v1 and v2 - update CHANGELOG.md -- update the version in `gradle.properties`. Needs to be done manually because the new tag task works for main branch only. -- merge the PR to the `v0`/`v1` branch +- update the version in `gradle.properties` +- merge the PR to the `v0`/`v1`/`main` branch - Create release tag manually - Create a release from this tag + - Action starts that pushes the package to MavenCentral. + - You can check OSSRH whether release was successful or not. ❗Release the v0 and v1 first if releasing all versions. This way the v2 is the latest in the Releases changelog. @@ -25,4 +18,12 @@ Release is done via a merged pull request to main/v0/v1 and then creating a rele - comment out line `useInMemoryPgpKeys(signingKey, signingPassword)` in deploy-ossrh.gradle - Update version in `$projectRoot/gradle.properties` and call `./gradlew -Prelease :hmkit-fleet:publishToSonatype`. -- Don't merge test version names to main \ No newline at end of file +- Don't merge test version names to main + + +## Automatic version increment + +It is possible to increment version on a PR, but the plugin currently works for main branch only. We want to release all versions with the same process, so we do it as described in the above paragraph. Otherwise, version incrementing works like this: + +- merge a pull request to main. This creates a new tag with minor +=1. + - optionally set a new major/minor version in `gradle.properties` before merging. Then the tag is created according to this manual version. Otherwise, patch number is incremented automatically.