This is an automated email from the ASF dual-hosted git repository.

chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fury.git


The following commit(s) were added to refs/heads/main by this push:
     new 0b4e56fd feat(chore): bump version support kotlin (#2134)
0b4e56fd is described below

commit 0b4e56fd6bb940d5baa570c5a1ed3495f0bc03a1
Author: Shawn Yang <[email protected]>
AuthorDate: Tue Apr 1 22:40:15 2025 +0800

    feat(chore): bump version support kotlin (#2134)
    
    ## What does this PR do?
    
    <!-- Describe the purpose of this PR. -->
    
    ## Related issues
    
    <!--
    Is there any related issue? Please attach here.
    
    - #xxxx0
    - #xxxx1
    - #xxxx2
    -->
    
    ## Does this PR introduce any user-facing change?
    
    <!--
    If any user-facing interface changes, please [open an
    issue](https://github.com/apache/fury/issues/new/choose) describing the
    need to do so and update the document if necessary.
    -->
    
    - [ ] Does this PR introduce any public API change?
    - [ ] Does this PR introduce any binary protocol compatibility change?
    
    ## Benchmark
    
    <!--
    When the PR has an impact on performance (if you don't know whether the
    PR will have an impact on performance, you can submit the PR first, and
    if it will have impact on performance, the code reviewer will explain
    it), be sure to attach a benchmark data here.
    -->
---
 .github/workflows/ci.yml |  2 +-
 ci/release.py            | 20 +++++++++++++++++++-
 2 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d4e6b6b3..c1238531 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -240,7 +240,7 @@ jobs:
     strategy:
       matrix:
         python-version: [3.8, 3.12, 3.13]
-        os: [ubuntu-20.04, macos-13, macos-14, windows-2022]
+        os: [ubuntu-latest, macos-13, macos-14, windows-2022]
     steps:
       - uses: actions/checkout@v4
       - name: Set up Python ${{ matrix.python-version }}
diff --git a/ci/release.py b/ci/release.py
index 0f110461..56af7ac0 100644
--- a/ci/release.py
+++ b/ci/release.py
@@ -127,7 +127,7 @@ def bump_version(**kwargs):
     new_version = kwargs["version"]
     langs = kwargs["l"]
     if langs == "all":
-        langs = ["java", "python", "javascript", "scala", "rust"]
+        langs = ["java", "python", "javascript", "scala", "rust", "kotlin"]
     else:
         langs = langs.split(",")
     for lang in langs:
@@ -135,6 +135,8 @@ def bump_version(**kwargs):
             bump_java_version(new_version)
         elif lang == "scala":
             _bump_version("scala", "build.sbt", new_version, 
_update_scala_version)
+        elif lang == "kotlin":
+            _bump_version("kotlin", "pom.xml", new_version, 
_update_kotlin_version)
         elif lang == "rust":
             _bump_version("rust", "Cargo.toml", new_version, 
_update_rust_version)
         elif lang == "python":
@@ -213,6 +215,22 @@ def _update_scala_version(lines, v):
     return lines
 
 
+def _update_kotlin_version(lines, v):
+    target_index = -1
+    for index, line in enumerate(lines):
+        if "<artifactId>fury-kotlin</artifactId>" in line:
+            target_index = index + 1
+            break
+    current_version_line = lines[target_index]
+    # Find the start and end of the version number
+    start = current_version_line.index("<version>") + len("<version>")
+    end = current_version_line.index("</version>")
+    # Replace the version number
+    updated_version_line = current_version_line[:start] + v + 
current_version_line[end:]
+    lines[target_index] = updated_version_line
+    return lines
+
+
 def _update_rust_version(lines, v):
     for index, line in enumerate(lines):
         if "version = " in line:


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to