From f137b2bc35481f1bac12eea4f5a4934aabd7f7fe Mon Sep 17 00:00:00 2001 From: CrowleyRajapakse Date: Mon, 18 Sep 2023 10:58:20 +0530 Subject: [PATCH] upgrade ballerina version and implementation --- .github/workflows/config-deployer-release.yml | 6 +++--- .github/workflows/idp-domain-service-release.yml | 6 +++--- adapter/revive.toml | 4 ++++ common-bal-libs/apk-common-lib/ballerina/Ballerina.toml | 2 +- common-bal-libs/apk-common-lib/ballerina/Dependencies.toml | 2 +- common-bal-libs/apk-keymanager-libs/Ballerina.toml | 2 +- common-bal-libs/apk-keymanager-libs/Dependencies.toml | 2 +- common-bal-libs/notification-grpc-client/Ballerina.toml | 2 +- common-bal-libs/notification-grpc-client/Dependencies.toml | 2 +- common-controller/revive.toml | 4 ++++ idp/idp-domain-service/ballerina/Ballerina.toml | 2 +- idp/idp-domain-service/ballerina/Ballerina.toml.template | 2 +- idp/idp-domain-service/ballerina/Dependencies.toml | 6 +++--- idp/idp-domain-service/ballerina/Dependencies.toml.template | 6 +++--- runtime/config-deployer-service/ballerina/Ballerina.toml | 2 +- .../ballerina/Ballerina.toml.template | 2 +- runtime/config-deployer-service/ballerina/Dependencies.toml | 2 +- .../ballerina/Dependencies.toml.template | 2 +- 18 files changed, 32 insertions(+), 24 deletions(-) diff --git a/.github/workflows/config-deployer-release.yml b/.github/workflows/config-deployer-release.yml index 9c7cbee7ee..81ea294e0a 100644 --- a/.github/workflows/config-deployer-release.yml +++ b/.github/workflows/config-deployer-release.yml @@ -54,16 +54,16 @@ jobs: id: cache with: path: "ballerina-dist/*.deb" - key: "ballerina-2201.7.0" + key: "ballerina-2201.7.2" - name: Download Ballerina distribution. shell: sh run: | mkdir -p ballerina-dist - wget 'https://dist.ballerina.io/downloads/2201.7.0/ballerina-2201.7.0-swan-lake-linux-x64.deb' -P ballerina-dist + wget 'https://dist.ballerina.io/downloads/2201.7.2/ballerina-2201.7.2-swan-lake-linux-x64.deb' -P ballerina-dist if: steps.cache.outputs.cache-hit != 'true' - name: Install Ballerina distribution. shell: sh - run: "sudo dpkg -i ballerina-dist/ballerina-2201.7.0-swan-lake-linux-x64.deb" + run: "sudo dpkg -i ballerina-dist/ballerina-2201.7.2-swan-lake-linux-x64.deb" - name: Verify Ballerina Version shell: sh run: "bal -v" diff --git a/.github/workflows/idp-domain-service-release.yml b/.github/workflows/idp-domain-service-release.yml index dddd8c8298..608ba891ce 100644 --- a/.github/workflows/idp-domain-service-release.yml +++ b/.github/workflows/idp-domain-service-release.yml @@ -52,16 +52,16 @@ jobs: id: cache with: path: "ballerina-dist/*.deb" - key: "ballerina-2201.7.0" + key: "ballerina-2201.7.2" - name: Download Ballerina distribution. shell: sh run: | mkdir -p ballerina-dist - wget 'https://dist.ballerina.io/downloads/2201.7.0/ballerina-2201.7.0-swan-lake-linux-x64.deb' -P ballerina-dist + wget 'https://dist.ballerina.io/downloads/2201.7.2/ballerina-2201.7.2-swan-lake-linux-x64.deb' -P ballerina-dist if: steps.cache.outputs.cache-hit != 'true' - name: Install Ballerina distribution. shell: sh - run: "sudo dpkg -i ballerina-dist/ballerina-2201.7.0-swan-lake-linux-x64.deb" + run: "sudo dpkg -i ballerina-dist/ballerina-2201.7.2-swan-lake-linux-x64.deb" - name: Verify Ballerina Version shell: sh run: "bal -v" diff --git a/adapter/revive.toml b/adapter/revive.toml index 7319491817..56a6a85eb0 100644 --- a/adapter/revive.toml +++ b/adapter/revive.toml @@ -8,6 +8,10 @@ warningCode = 0 [rule.context-as-argument] [rule.context-keys-type] [rule.dot-imports] +[rule] +name = "dot-import" +enable = false +where = "$file =~ '_test.go$'" [rule.error-return] [rule.error-strings] [rule.error-naming] diff --git a/common-bal-libs/apk-common-lib/ballerina/Ballerina.toml b/common-bal-libs/apk-common-lib/ballerina/Ballerina.toml index 7460a19008..c7e2de6ff3 100644 --- a/common-bal-libs/apk-common-lib/ballerina/Ballerina.toml +++ b/common-bal-libs/apk-common-lib/ballerina/Ballerina.toml @@ -2,7 +2,7 @@ org = "wso2" name = "apk_common_lib" version = "0.0.1-SNAPSHOT" -distribution = "2201.7.0" +distribution = "2201.7.2" [[platform.java11.dependency]] groupId = "org.wso2.apk" diff --git a/common-bal-libs/apk-common-lib/ballerina/Dependencies.toml b/common-bal-libs/apk-common-lib/ballerina/Dependencies.toml index cf2fde9479..78f61739a9 100644 --- a/common-bal-libs/apk-common-lib/ballerina/Dependencies.toml +++ b/common-bal-libs/apk-common-lib/ballerina/Dependencies.toml @@ -5,7 +5,7 @@ [ballerina] dependencies-toml-version = "2" -distribution-version = "2201.7.0" +distribution-version = "2201.7.2" [[package]] org = "ballerina" diff --git a/common-bal-libs/apk-keymanager-libs/Ballerina.toml b/common-bal-libs/apk-keymanager-libs/Ballerina.toml index c884dbfd7e..3e12613394 100644 --- a/common-bal-libs/apk-keymanager-libs/Ballerina.toml +++ b/common-bal-libs/apk-keymanager-libs/Ballerina.toml @@ -2,7 +2,7 @@ org = "wso2" name = "apk_keymanager_libs" version = "0.0.1-SNAPSHOT" -distribution = "2201.7.0" +distribution = "2201.7.2" [[dependency]] org = "wso2" diff --git a/common-bal-libs/apk-keymanager-libs/Dependencies.toml b/common-bal-libs/apk-keymanager-libs/Dependencies.toml index 8d3f7b999f..b55cb04941 100644 --- a/common-bal-libs/apk-keymanager-libs/Dependencies.toml +++ b/common-bal-libs/apk-keymanager-libs/Dependencies.toml @@ -5,7 +5,7 @@ [ballerina] dependencies-toml-version = "2" -distribution-version = "2201.7.0" +distribution-version = "2201.7.2" [[package]] org = "ballerina" diff --git a/common-bal-libs/notification-grpc-client/Ballerina.toml b/common-bal-libs/notification-grpc-client/Ballerina.toml index a7a5fcb94f..739213d074 100644 --- a/common-bal-libs/notification-grpc-client/Ballerina.toml +++ b/common-bal-libs/notification-grpc-client/Ballerina.toml @@ -2,4 +2,4 @@ org = "wso2" name = "notification_grpc_client" version = "0.0.1-SNAPSHOT" -distribution = "2201.7.0" +distribution = "2201.7.2" diff --git a/common-bal-libs/notification-grpc-client/Dependencies.toml b/common-bal-libs/notification-grpc-client/Dependencies.toml index 48b1f387f0..66a15dd62d 100644 --- a/common-bal-libs/notification-grpc-client/Dependencies.toml +++ b/common-bal-libs/notification-grpc-client/Dependencies.toml @@ -5,7 +5,7 @@ [ballerina] dependencies-toml-version = "2" -distribution-version = "2201.7.0" +distribution-version = "2201.7.2" [[package]] org = "ballerina" diff --git a/common-controller/revive.toml b/common-controller/revive.toml index 7319491817..56a6a85eb0 100644 --- a/common-controller/revive.toml +++ b/common-controller/revive.toml @@ -8,6 +8,10 @@ warningCode = 0 [rule.context-as-argument] [rule.context-keys-type] [rule.dot-imports] +[rule] +name = "dot-import" +enable = false +where = "$file =~ '_test.go$'" [rule.error-return] [rule.error-strings] [rule.error-naming] diff --git a/idp/idp-domain-service/ballerina/Ballerina.toml b/idp/idp-domain-service/ballerina/Ballerina.toml index b6743894b1..18f908cfe0 100644 --- a/idp/idp-domain-service/ballerina/Ballerina.toml +++ b/idp/idp-domain-service/ballerina/Ballerina.toml @@ -2,7 +2,7 @@ org = "wso2" name = "idp_domain_service" version = "1.0.0-rc2" -distribution = "2201.7.0" +distribution = "2201.7.2" [[platform.java11.dependency]] groupId = "org.postgresql" diff --git a/idp/idp-domain-service/ballerina/Ballerina.toml.template b/idp/idp-domain-service/ballerina/Ballerina.toml.template index 388198ef2b..2242fcee40 100644 --- a/idp/idp-domain-service/ballerina/Ballerina.toml.template +++ b/idp/idp-domain-service/ballerina/Ballerina.toml.template @@ -2,7 +2,7 @@ org = "wso2" name = "idp_domain_service" version = "PROJECT_VERSION" -distribution = "2201.7.0" +distribution = "2201.7.2" [[platform.java11.dependency]] groupId = "org.postgresql" diff --git a/idp/idp-domain-service/ballerina/Dependencies.toml b/idp/idp-domain-service/ballerina/Dependencies.toml index 35da52aaf7..19f0b7ca46 100644 --- a/idp/idp-domain-service/ballerina/Dependencies.toml +++ b/idp/idp-domain-service/ballerina/Dependencies.toml @@ -5,7 +5,7 @@ [ballerina] dependencies-toml-version = "2" -distribution-version = "2201.7.0" +distribution-version = "2201.7.2" [[package]] org = "ballerina" @@ -41,7 +41,7 @@ dependencies = [ [[package]] org = "ballerina" name = "crypto" -version = "2.4.0" +version = "2.4.1" dependencies = [ {org = "ballerina", name = "jballerina.java"}, {org = "ballerina", name = "time"} @@ -61,7 +61,7 @@ dependencies = [ [[package]] org = "ballerina" name = "http" -version = "2.9.2" +version = "2.9.3" dependencies = [ {org = "ballerina", name = "auth"}, {org = "ballerina", name = "cache"}, diff --git a/idp/idp-domain-service/ballerina/Dependencies.toml.template b/idp/idp-domain-service/ballerina/Dependencies.toml.template index e9647848e4..afb21d9c9f 100644 --- a/idp/idp-domain-service/ballerina/Dependencies.toml.template +++ b/idp/idp-domain-service/ballerina/Dependencies.toml.template @@ -5,7 +5,7 @@ [ballerina] dependencies-toml-version = "2" -distribution-version = "2201.7.0" +distribution-version = "2201.7.2" [[package]] org = "ballerina" @@ -41,7 +41,7 @@ dependencies = [ [[package]] org = "ballerina" name = "crypto" -version = "2.4.0" +version = "2.4.1" dependencies = [ {org = "ballerina", name = "jballerina.java"}, {org = "ballerina", name = "time"} @@ -61,7 +61,7 @@ dependencies = [ [[package]] org = "ballerina" name = "http" -version = "2.9.0" +version = "2.9.3" dependencies = [ {org = "ballerina", name = "auth"}, {org = "ballerina", name = "cache"}, diff --git a/runtime/config-deployer-service/ballerina/Ballerina.toml b/runtime/config-deployer-service/ballerina/Ballerina.toml index 0dfb14060d..6644bef3ed 100644 --- a/runtime/config-deployer-service/ballerina/Ballerina.toml +++ b/runtime/config-deployer-service/ballerina/Ballerina.toml @@ -2,7 +2,7 @@ org = "wso2" name = "config_deployer_service" version = "1.0.0-SNAPSHOT" -distribution = "2201.7.0" +distribution = "2201.7.2" [build-options] observabilityIncluded = false diff --git a/runtime/config-deployer-service/ballerina/Ballerina.toml.template b/runtime/config-deployer-service/ballerina/Ballerina.toml.template index d605a62d91..5b0ed1eb78 100644 --- a/runtime/config-deployer-service/ballerina/Ballerina.toml.template +++ b/runtime/config-deployer-service/ballerina/Ballerina.toml.template @@ -2,7 +2,7 @@ org = "wso2" name = "config_deployer_service" version = "PROJECT_VERSION" -distribution = "2201.7.0" +distribution = "2201.7.2" [build-options] observabilityIncluded = false diff --git a/runtime/config-deployer-service/ballerina/Dependencies.toml b/runtime/config-deployer-service/ballerina/Dependencies.toml index 1d27751fc3..72faac8368 100644 --- a/runtime/config-deployer-service/ballerina/Dependencies.toml +++ b/runtime/config-deployer-service/ballerina/Dependencies.toml @@ -5,7 +5,7 @@ [ballerina] dependencies-toml-version = "2" -distribution-version = "2201.7.0" +distribution-version = "2201.7.2" [[package]] org = "ballerina" diff --git a/runtime/config-deployer-service/ballerina/Dependencies.toml.template b/runtime/config-deployer-service/ballerina/Dependencies.toml.template index 0687353630..f58463cfb6 100644 --- a/runtime/config-deployer-service/ballerina/Dependencies.toml.template +++ b/runtime/config-deployer-service/ballerina/Dependencies.toml.template @@ -5,7 +5,7 @@ [ballerina] dependencies-toml-version = "2" -distribution-version = "2201.7.0" +distribution-version = "2201.7.2" [[package]] org = "ballerina"