Repository: kaiachain/kaia-sdk (language: python)

Issue:
add trigger for web3j-ext



Discussion / hints:

Fix patch:
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index e2e7b7cb6..5a3b280fc 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -68,7 +68,7 @@ jobs:
         if: steps.verify-changed-files.outputs.web3j-ext_any_changed == 'true'
         shell: bash
         run: |
-          cd web3j-ext/web3j-ext && gradle build && gradle publish \
+          cd web3j-ext/web3j-ext && gradle wrapper && gradle build && gradle publish \
           && cd build/libs && zip -r web3j-ext.zip io \
           && curl POST --verbose --header "Authorization: Bearer $PUBLISHER_TOKEN" --form bundle=@web3j-ext.zip https://central.sonatype.com/api/v1/publisher/upload
         env:
diff --git a/ethers-ext/package.json b/ethers-ext/package.json
index c7aedb26d..6a583071c 100644
--- a/ethers-ext/package.json
+++ b/ethers-ext/package.json
@@ -80,4 +80,4 @@
     "@kaiachain/web3rpc": "^1.0.0",
     "lodash": "^4.17.21"
   }
-}
+}
\ No newline at end of file
diff --git a/web3j-ext/web3j-ext/build.gradle b/web3j-ext/web3j-ext/build.gradle
index b6e4c11e0..60253d55b 100644
--- a/web3j-ext/web3j-ext/build.gradle
+++ b/web3j-ext/web3j-ext/build.gradle
@@ -95,7 +95,6 @@ if (System.getenv("PUBLISH_TO_MAVEN_PUBLIC")) {
     }
 }
 
-
 test {
     useJUnitPlatform()
 }
diff --git a/web3j-ext/web3j-ext/gradle/wrapper/gradle-wrapper.properties b/web3j-ext/web3j-ext/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 000000000..a4413138c
--- /dev/null
+++ b/web3j-ext/web3j-ext/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,7 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
+networkTimeout=10000
+validateDistributionUrl=true
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
diff --git a/web3j-ext/web3j-ext/src/main/java/org/web3j/utils/KaiaConvert.java b/web3j-ext/web3j-ext/src/main/java/org/web3j/utils/KaiaConvert.java
index 00e1fed13..91dae4d9e 100644
--- a/web3j-ext/web3j-ext/src/main/java/org/web3j/utils/KaiaConvert.java
+++ b/web3j-ext/web3j-ext/src/main/java/org/web3j/utils/KaiaConvert.java
@@ -2,8 +2,8 @@
 
 import java.math.BigDecimal;
 
-public class KAIAConvert {
-    private KAIAConvert() { } 
+public class KaiaConvert {
+    private KaiaConvert() { } 
 
     // Kaia units
     public static BigDecimal fromPeb(String number, Unit unit) {
diff --git a/web3js-ext/package.json b/web3js-ext/package.json
index fdacbc65c..a192a961d 100644
--- a/web3js-ext/package.json
+++ b/web3js-ext/package.json
@@ -58,4 +58,4 @@
         "lodash": "^4.17.21",
         "web3": "^4.1.0"
     }
-}
\ No newline at end of file
+}
diff --git a/web3py-ext/setup.py b/web3py-ext/setup.py
index 5042ad832..927508f56 100644
--- a/web3py-ext/setup.py
+++ b/web3py-ext/setup.py
@@ -25,4 +25,4 @@
     packages=find_packages(exclude=["test", "tests"]),
     include_package_data=True,
     license="MIT",
-)
+)
\ No newline at end of file


Test patch:
diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml
index 99480e3ed..eca0427c4 100644
--- a/.github/workflows/build-test.yml
+++ b/.github/workflows/build-test.yml
@@ -108,3 +108,9 @@ jobs:
         run: |
           cd web3js-ext && npm install && npm run build && cd -
 
+      - name: generate web3j-ext
+        if: steps.verify-changed-files.outputs.web3j-ext_any_changed == 'true'
+        shell: bash
+        run: |
+          cd web3j-ext/web3j-ext && gradle wrapper && gradle build && cd -
+