From 45e280e5e2a079dad5671addbabba37cf01875a6 Mon Sep 17 00:00:00 2001 From: CrowleyRajapakse Date: Mon, 25 Sep 2023 12:03:59 +0530 Subject: [PATCH] upgrading ballerina to v8.0 --- .github/workflows/code-coverage.yaml | 6 +-- .github/workflows/config-deployer-release.yml | 6 +-- .../workflows/idp-domain-service-release.yml | 6 +-- .../apk-common-lib/ballerina/Ballerina.toml | 2 +- .../ballerina/Dependencies.toml | 40 ++++++++-------- .../apk-keymanager-libs/Ballerina.toml | 2 +- .../apk-keymanager-libs/Dependencies.toml | 40 ++++++++-------- .../notification-grpc-client/Ballerina.toml | 2 +- .../Dependencies.toml | 30 ++++++------ .../ballerina/Ballerina.toml | 2 +- .../ballerina/Ballerina.toml.template | 2 +- .../ballerina/Dependencies.toml | 40 ++++++++-------- .../ballerina/Dependencies.toml.template | 48 +++++++++---------- .../ballerina/APIClient.bal | 2 - .../ballerina/Ballerina.toml | 2 +- .../ballerina/Ballerina.toml.template | 2 +- .../ballerina/Dependencies.toml | 40 ++++++++-------- .../ballerina/Dependencies.toml.template | 40 ++++++++-------- .../ballerina/Init.bal | 3 +- .../artifact-deployer-api_service.bal | 7 ++- .../artifact-generator-api_service.bal | 7 ++- 21 files changed, 168 insertions(+), 161 deletions(-) diff --git a/.github/workflows/code-coverage.yaml b/.github/workflows/code-coverage.yaml index a4f6bd4e87..34464ff5f7 100644 --- a/.github/workflows/code-coverage.yaml +++ b/.github/workflows/code-coverage.yaml @@ -26,16 +26,16 @@ jobs: id: cache with: path: "ballerina-dist/*.deb" - key: "ballerina-2201.7.0" + key: "ballerina-2201.8.0" - 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.8.0/ballerina-2201.8.0-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.8.0-swan-lake-linux-x64.deb" - name: Verify Ballerina Version shell: sh run: "bal -v" diff --git a/.github/workflows/config-deployer-release.yml b/.github/workflows/config-deployer-release.yml index 81ea294e0a..ecb331db8f 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.2" + key: "ballerina-2201.8.0" - name: Download Ballerina distribution. shell: sh run: | mkdir -p ballerina-dist - wget 'https://dist.ballerina.io/downloads/2201.7.2/ballerina-2201.7.2-swan-lake-linux-x64.deb' -P ballerina-dist + wget 'https://dist.ballerina.io/downloads/2201.8.0/ballerina-2201.8.0-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.2-swan-lake-linux-x64.deb" + run: "sudo dpkg -i ballerina-dist/ballerina-2201.8.0-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 608ba891ce..ae12b77be7 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.2" + key: "ballerina-2201.8.0" - name: Download Ballerina distribution. shell: sh run: | mkdir -p ballerina-dist - wget 'https://dist.ballerina.io/downloads/2201.7.2/ballerina-2201.7.2-swan-lake-linux-x64.deb' -P ballerina-dist + wget 'https://dist.ballerina.io/downloads/2201.8.0/ballerina-2201.8.0-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.2-swan-lake-linux-x64.deb" + run: "sudo dpkg -i ballerina-dist/ballerina-2201.8.0-swan-lake-linux-x64.deb" - name: Verify Ballerina Version shell: sh run: "bal -v" diff --git a/common-bal-libs/apk-common-lib/ballerina/Ballerina.toml b/common-bal-libs/apk-common-lib/ballerina/Ballerina.toml index c7e2de6ff3..bec2d67354 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.2" +distribution = "2201.8.0" [[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 78f61739a9..46a9d5c911 100644 --- a/common-bal-libs/apk-common-lib/ballerina/Dependencies.toml +++ b/common-bal-libs/apk-common-lib/ballerina/Dependencies.toml @@ -5,12 +5,12 @@ [ballerina] dependencies-toml-version = "2" -distribution-version = "2201.7.2" +distribution-version = "2201.8.0" [[package]] org = "ballerina" name = "auth" -version = "2.9.0" +version = "2.10.0" dependencies = [ {org = "ballerina", name = "crypto"}, {org = "ballerina", name = "jballerina.java"}, @@ -22,7 +22,7 @@ dependencies = [ [[package]] org = "ballerina" name = "cache" -version = "3.6.0" +version = "3.7.0" dependencies = [ {org = "ballerina", name = "constraint"}, {org = "ballerina", name = "jballerina.java"}, @@ -33,7 +33,7 @@ dependencies = [ [[package]] org = "ballerina" name = "constraint" -version = "1.3.0" +version = "1.4.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -41,7 +41,7 @@ dependencies = [ [[package]] org = "ballerina" name = "crypto" -version = "2.4.0" +version = "2.5.0" dependencies = [ {org = "ballerina", name = "jballerina.java"}, {org = "ballerina", name = "time"} @@ -50,7 +50,7 @@ dependencies = [ [[package]] org = "ballerina" name = "file" -version = "1.8.1" +version = "1.9.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -61,7 +61,7 @@ dependencies = [ [[package]] org = "ballerina" name = "http" -version = "2.9.0" +version = "2.10.0" dependencies = [ {org = "ballerina", name = "auth"}, {org = "ballerina", name = "cache"}, @@ -93,7 +93,7 @@ modules = [ [[package]] org = "ballerina" name = "io" -version = "1.5.0" +version = "1.6.0" dependencies = [ {org = "ballerina", name = "jballerina.java"}, {org = "ballerina", name = "lang.value"} @@ -110,7 +110,7 @@ modules = [ [[package]] org = "ballerina" name = "jballerina.java.arrays" -version = "1.3.0" +version = "1.4.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -121,7 +121,7 @@ modules = [ [[package]] org = "ballerina" name = "jwt" -version = "2.9.0" +version = "2.10.0" dependencies = [ {org = "ballerina", name = "cache"}, {org = "ballerina", name = "crypto"}, @@ -215,7 +215,7 @@ modules = [ [[package]] org = "ballerina" name = "log" -version = "2.8.0" +version = "2.9.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -229,7 +229,7 @@ modules = [ [[package]] org = "ballerina" name = "mime" -version = "2.8.0" +version = "2.9.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -239,7 +239,7 @@ dependencies = [ [[package]] org = "ballerina" name = "oauth2" -version = "2.9.0" +version = "2.10.0" dependencies = [ {org = "ballerina", name = "cache"}, {org = "ballerina", name = "crypto"}, @@ -252,7 +252,7 @@ dependencies = [ [[package]] org = "ballerina" name = "observe" -version = "1.1.0" +version = "1.2.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -260,7 +260,7 @@ dependencies = [ [[package]] org = "ballerina" name = "os" -version = "1.7.0" +version = "1.8.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"} @@ -284,7 +284,7 @@ modules = [ [[package]] org = "ballerina" name = "sql" -version = "1.10.0" +version = "1.11.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -298,7 +298,7 @@ modules = [ [[package]] org = "ballerina" name = "task" -version = "2.4.0" +version = "2.5.0" dependencies = [ {org = "ballerina", name = "jballerina.java"}, {org = "ballerina", name = "time"} @@ -307,7 +307,7 @@ dependencies = [ [[package]] org = "ballerina" name = "time" -version = "2.3.0" +version = "2.4.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -315,7 +315,7 @@ dependencies = [ [[package]] org = "ballerina" name = "url" -version = "2.3.0" +version = "2.4.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -323,7 +323,7 @@ dependencies = [ [[package]] org = "ballerina" name = "uuid" -version = "1.6.0" +version = "1.7.0" dependencies = [ {org = "ballerina", name = "crypto"}, {org = "ballerina", name = "jballerina.java"}, diff --git a/common-bal-libs/apk-keymanager-libs/Ballerina.toml b/common-bal-libs/apk-keymanager-libs/Ballerina.toml index 3e12613394..7758c262ae 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.2" +distribution = "2201.8.0" [[dependency]] org = "wso2" diff --git a/common-bal-libs/apk-keymanager-libs/Dependencies.toml b/common-bal-libs/apk-keymanager-libs/Dependencies.toml index b55cb04941..2ca7af86fc 100644 --- a/common-bal-libs/apk-keymanager-libs/Dependencies.toml +++ b/common-bal-libs/apk-keymanager-libs/Dependencies.toml @@ -5,12 +5,12 @@ [ballerina] dependencies-toml-version = "2" -distribution-version = "2201.7.2" +distribution-version = "2201.8.0" [[package]] org = "ballerina" name = "auth" -version = "2.9.0" +version = "2.10.0" dependencies = [ {org = "ballerina", name = "crypto"}, {org = "ballerina", name = "jballerina.java"}, @@ -22,7 +22,7 @@ dependencies = [ [[package]] org = "ballerina" name = "cache" -version = "3.6.0" +version = "3.7.0" dependencies = [ {org = "ballerina", name = "constraint"}, {org = "ballerina", name = "jballerina.java"}, @@ -33,7 +33,7 @@ dependencies = [ [[package]] org = "ballerina" name = "constraint" -version = "1.3.0" +version = "1.4.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -41,7 +41,7 @@ dependencies = [ [[package]] org = "ballerina" name = "crypto" -version = "2.4.0" +version = "2.5.0" dependencies = [ {org = "ballerina", name = "jballerina.java"}, {org = "ballerina", name = "time"} @@ -50,7 +50,7 @@ dependencies = [ [[package]] org = "ballerina" name = "file" -version = "1.8.1" +version = "1.9.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -64,7 +64,7 @@ modules = [ [[package]] org = "ballerina" name = "http" -version = "2.9.0" +version = "2.10.0" dependencies = [ {org = "ballerina", name = "auth"}, {org = "ballerina", name = "cache"}, @@ -92,7 +92,7 @@ dependencies = [ [[package]] org = "ballerina" name = "io" -version = "1.5.0" +version = "1.6.0" dependencies = [ {org = "ballerina", name = "jballerina.java"}, {org = "ballerina", name = "lang.value"} @@ -109,7 +109,7 @@ version = "0.0.0" [[package]] org = "ballerina" name = "jballerina.java.arrays" -version = "1.3.0" +version = "1.4.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -117,7 +117,7 @@ dependencies = [ [[package]] org = "ballerina" name = "jwt" -version = "2.9.0" +version = "2.10.0" dependencies = [ {org = "ballerina", name = "cache"}, {org = "ballerina", name = "crypto"}, @@ -214,7 +214,7 @@ dependencies = [ [[package]] org = "ballerina" name = "log" -version = "2.8.0" +version = "2.9.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -228,7 +228,7 @@ modules = [ [[package]] org = "ballerina" name = "mime" -version = "2.8.0" +version = "2.9.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -238,7 +238,7 @@ dependencies = [ [[package]] org = "ballerina" name = "oauth2" -version = "2.9.0" +version = "2.10.0" dependencies = [ {org = "ballerina", name = "cache"}, {org = "ballerina", name = "crypto"}, @@ -251,7 +251,7 @@ dependencies = [ [[package]] org = "ballerina" name = "observe" -version = "1.1.0" +version = "1.2.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -259,7 +259,7 @@ dependencies = [ [[package]] org = "ballerina" name = "os" -version = "1.7.0" +version = "1.8.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"} @@ -277,7 +277,7 @@ dependencies = [ [[package]] org = "ballerina" name = "sql" -version = "1.10.0" +version = "1.11.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -288,7 +288,7 @@ dependencies = [ [[package]] org = "ballerina" name = "task" -version = "2.4.0" +version = "2.5.0" dependencies = [ {org = "ballerina", name = "jballerina.java"}, {org = "ballerina", name = "time"} @@ -310,7 +310,7 @@ modules = [ [[package]] org = "ballerina" name = "time" -version = "2.3.0" +version = "2.4.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -318,7 +318,7 @@ dependencies = [ [[package]] org = "ballerina" name = "url" -version = "2.3.0" +version = "2.4.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -326,7 +326,7 @@ dependencies = [ [[package]] org = "ballerina" name = "uuid" -version = "1.6.0" +version = "1.7.0" dependencies = [ {org = "ballerina", name = "crypto"}, {org = "ballerina", name = "jballerina.java"}, diff --git a/common-bal-libs/notification-grpc-client/Ballerina.toml b/common-bal-libs/notification-grpc-client/Ballerina.toml index 739213d074..654a406468 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.2" +distribution = "2201.8.0" diff --git a/common-bal-libs/notification-grpc-client/Dependencies.toml b/common-bal-libs/notification-grpc-client/Dependencies.toml index 66a15dd62d..59ab75b2ac 100644 --- a/common-bal-libs/notification-grpc-client/Dependencies.toml +++ b/common-bal-libs/notification-grpc-client/Dependencies.toml @@ -5,12 +5,12 @@ [ballerina] dependencies-toml-version = "2" -distribution-version = "2201.7.2" +distribution-version = "2201.8.0" [[package]] org = "ballerina" name = "auth" -version = "2.9.0" +version = "2.10.0" dependencies = [ {org = "ballerina", name = "crypto"}, {org = "ballerina", name = "jballerina.java"}, @@ -22,7 +22,7 @@ dependencies = [ [[package]] org = "ballerina" name = "cache" -version = "3.6.0" +version = "3.7.0" dependencies = [ {org = "ballerina", name = "constraint"}, {org = "ballerina", name = "jballerina.java"}, @@ -33,7 +33,7 @@ dependencies = [ [[package]] org = "ballerina" name = "constraint" -version = "1.3.0" +version = "1.4.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -41,7 +41,7 @@ dependencies = [ [[package]] org = "ballerina" name = "crypto" -version = "2.4.0" +version = "2.5.0" dependencies = [ {org = "ballerina", name = "jballerina.java"}, {org = "ballerina", name = "time"} @@ -50,7 +50,7 @@ dependencies = [ [[package]] org = "ballerina" name = "grpc" -version = "1.9.0" +version = "1.10.0" dependencies = [ {org = "ballerina", name = "auth"}, {org = "ballerina", name = "crypto"}, @@ -74,7 +74,7 @@ modules = [ [[package]] org = "ballerina" name = "io" -version = "1.5.0" +version = "1.6.0" dependencies = [ {org = "ballerina", name = "jballerina.java"}, {org = "ballerina", name = "lang.value"} @@ -91,7 +91,7 @@ version = "0.0.0" [[package]] org = "ballerina" name = "jwt" -version = "2.9.0" +version = "2.10.0" dependencies = [ {org = "ballerina", name = "cache"}, {org = "ballerina", name = "crypto"}, @@ -180,7 +180,7 @@ dependencies = [ [[package]] org = "ballerina" name = "log" -version = "2.8.0" +version = "2.9.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -194,7 +194,7 @@ modules = [ [[package]] org = "ballerina" name = "oauth2" -version = "2.9.0" +version = "2.10.0" dependencies = [ {org = "ballerina", name = "cache"}, {org = "ballerina", name = "crypto"}, @@ -207,7 +207,7 @@ dependencies = [ [[package]] org = "ballerina" name = "observe" -version = "1.1.0" +version = "1.2.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -215,7 +215,7 @@ dependencies = [ [[package]] org = "ballerina" name = "protobuf" -version = "1.5.0" +version = "1.6.0" dependencies = [ {org = "ballerina", name = "jballerina.java"}, {org = "ballerina", name = "time"} @@ -233,7 +233,7 @@ modules = [ [[package]] org = "ballerina" name = "task" -version = "2.4.0" +version = "2.5.0" dependencies = [ {org = "ballerina", name = "jballerina.java"}, {org = "ballerina", name = "time"} @@ -255,7 +255,7 @@ modules = [ [[package]] org = "ballerina" name = "time" -version = "2.3.0" +version = "2.4.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -263,7 +263,7 @@ dependencies = [ [[package]] org = "ballerina" name = "url" -version = "2.3.0" +version = "2.4.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] diff --git a/idp/idp-domain-service/ballerina/Ballerina.toml b/idp/idp-domain-service/ballerina/Ballerina.toml index 18f908cfe0..e9060f650c 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.2" +distribution = "2201.8.0" [[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 2242fcee40..95daeaff57 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.2" +distribution = "2201.8.0" [[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 19f0b7ca46..17a7ed2747 100644 --- a/idp/idp-domain-service/ballerina/Dependencies.toml +++ b/idp/idp-domain-service/ballerina/Dependencies.toml @@ -5,12 +5,12 @@ [ballerina] dependencies-toml-version = "2" -distribution-version = "2201.7.2" +distribution-version = "2201.8.0" [[package]] org = "ballerina" name = "auth" -version = "2.9.0" +version = "2.10.0" dependencies = [ {org = "ballerina", name = "crypto"}, {org = "ballerina", name = "jballerina.java"}, @@ -22,7 +22,7 @@ dependencies = [ [[package]] org = "ballerina" name = "cache" -version = "3.6.0" +version = "3.7.0" dependencies = [ {org = "ballerina", name = "constraint"}, {org = "ballerina", name = "jballerina.java"}, @@ -33,7 +33,7 @@ dependencies = [ [[package]] org = "ballerina" name = "constraint" -version = "1.3.0" +version = "1.4.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -41,7 +41,7 @@ dependencies = [ [[package]] org = "ballerina" name = "crypto" -version = "2.4.1" +version = "2.5.0" dependencies = [ {org = "ballerina", name = "jballerina.java"}, {org = "ballerina", name = "time"} @@ -50,7 +50,7 @@ dependencies = [ [[package]] org = "ballerina" name = "file" -version = "1.8.1" +version = "1.9.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -61,7 +61,7 @@ dependencies = [ [[package]] org = "ballerina" name = "http" -version = "2.9.3" +version = "2.10.0" dependencies = [ {org = "ballerina", name = "auth"}, {org = "ballerina", name = "cache"}, @@ -93,7 +93,7 @@ modules = [ [[package]] org = "ballerina" name = "io" -version = "1.5.0" +version = "1.6.0" dependencies = [ {org = "ballerina", name = "jballerina.java"}, {org = "ballerina", name = "lang.value"} @@ -110,7 +110,7 @@ version = "0.0.0" [[package]] org = "ballerina" name = "jwt" -version = "2.9.0" +version = "2.10.0" dependencies = [ {org = "ballerina", name = "cache"}, {org = "ballerina", name = "crypto"}, @@ -213,7 +213,7 @@ dependencies = [ [[package]] org = "ballerina" name = "log" -version = "2.8.1" +version = "2.9.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -227,7 +227,7 @@ modules = [ [[package]] org = "ballerina" name = "mime" -version = "2.8.0" +version = "2.9.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -237,7 +237,7 @@ dependencies = [ [[package]] org = "ballerina" name = "oauth2" -version = "2.9.0" +version = "2.10.0" dependencies = [ {org = "ballerina", name = "cache"}, {org = "ballerina", name = "crypto"}, @@ -250,7 +250,7 @@ dependencies = [ [[package]] org = "ballerina" name = "observe" -version = "1.1.0" +version = "1.2.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -258,7 +258,7 @@ dependencies = [ [[package]] org = "ballerina" name = "os" -version = "1.7.0" +version = "1.8.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"} @@ -279,7 +279,7 @@ modules = [ [[package]] org = "ballerina" name = "sql" -version = "1.10.0" +version = "1.11.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -293,7 +293,7 @@ modules = [ [[package]] org = "ballerina" name = "task" -version = "2.4.0" +version = "2.5.0" dependencies = [ {org = "ballerina", name = "jballerina.java"}, {org = "ballerina", name = "time"} @@ -315,7 +315,7 @@ modules = [ [[package]] org = "ballerina" name = "time" -version = "2.3.0" +version = "2.4.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -326,7 +326,7 @@ modules = [ [[package]] org = "ballerina" name = "url" -version = "2.3.0" +version = "2.4.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -337,7 +337,7 @@ modules = [ [[package]] org = "ballerina" name = "uuid" -version = "1.6.0" +version = "1.7.0" dependencies = [ {org = "ballerina", name = "crypto"}, {org = "ballerina", name = "jballerina.java"}, @@ -363,7 +363,7 @@ modules = [ [[package]] org = "ballerinax" name = "postgresql" -version = "1.10.0" +version = "1.11.0" dependencies = [ {org = "ballerina", name = "crypto"}, {org = "ballerina", name = "io"}, diff --git a/idp/idp-domain-service/ballerina/Dependencies.toml.template b/idp/idp-domain-service/ballerina/Dependencies.toml.template index afb21d9c9f..30e52eeec7 100644 --- a/idp/idp-domain-service/ballerina/Dependencies.toml.template +++ b/idp/idp-domain-service/ballerina/Dependencies.toml.template @@ -5,12 +5,12 @@ [ballerina] dependencies-toml-version = "2" -distribution-version = "2201.7.2" +distribution-version = "2201.8.0" [[package]] org = "ballerina" name = "auth" -version = "2.9.0" +version = "2.10.0" dependencies = [ {org = "ballerina", name = "crypto"}, {org = "ballerina", name = "jballerina.java"}, @@ -22,7 +22,7 @@ dependencies = [ [[package]] org = "ballerina" name = "cache" -version = "3.6.0" +version = "3.7.0" dependencies = [ {org = "ballerina", name = "constraint"}, {org = "ballerina", name = "jballerina.java"}, @@ -33,7 +33,7 @@ dependencies = [ [[package]] org = "ballerina" name = "constraint" -version = "1.3.0" +version = "1.4.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -41,7 +41,7 @@ dependencies = [ [[package]] org = "ballerina" name = "crypto" -version = "2.4.1" +version = "2.5.0" dependencies = [ {org = "ballerina", name = "jballerina.java"}, {org = "ballerina", name = "time"} @@ -50,7 +50,7 @@ dependencies = [ [[package]] org = "ballerina" name = "file" -version = "1.8.1" +version = "1.9.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -61,7 +61,7 @@ dependencies = [ [[package]] org = "ballerina" name = "http" -version = "2.9.3" +version = "2.10.0" dependencies = [ {org = "ballerina", name = "auth"}, {org = "ballerina", name = "cache"}, @@ -93,11 +93,14 @@ modules = [ [[package]] org = "ballerina" name = "io" -version = "1.5.0" +version = "1.6.0" dependencies = [ {org = "ballerina", name = "jballerina.java"}, {org = "ballerina", name = "lang.value"} ] +modules = [ + {org = "ballerina", packageName = "io", moduleName = "io"} +] [[package]] org = "ballerina" @@ -107,7 +110,7 @@ version = "0.0.0" [[package]] org = "ballerina" name = "jwt" -version = "2.9.0" +version = "2.10.0" dependencies = [ {org = "ballerina", name = "cache"}, {org = "ballerina", name = "crypto"}, @@ -210,7 +213,7 @@ dependencies = [ [[package]] org = "ballerina" name = "log" -version = "2.8.0" +version = "2.9.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -224,7 +227,7 @@ modules = [ [[package]] org = "ballerina" name = "mime" -version = "2.8.0" +version = "2.9.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -234,7 +237,7 @@ dependencies = [ [[package]] org = "ballerina" name = "oauth2" -version = "2.9.0" +version = "2.10.0" dependencies = [ {org = "ballerina", name = "cache"}, {org = "ballerina", name = "crypto"}, @@ -247,7 +250,7 @@ dependencies = [ [[package]] org = "ballerina" name = "observe" -version = "1.1.0" +version = "1.2.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -255,14 +258,11 @@ dependencies = [ [[package]] org = "ballerina" name = "os" -version = "1.7.0" +version = "1.8.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"} ] -modules = [ - {org = "ballerina", packageName = "os", moduleName = "os"} -] [[package]] org = "ballerina" @@ -279,7 +279,7 @@ modules = [ [[package]] org = "ballerina" name = "sql" -version = "1.10.0" +version = "1.11.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -293,7 +293,7 @@ modules = [ [[package]] org = "ballerina" name = "task" -version = "2.4.0" +version = "2.5.0" dependencies = [ {org = "ballerina", name = "jballerina.java"}, {org = "ballerina", name = "time"} @@ -315,7 +315,7 @@ modules = [ [[package]] org = "ballerina" name = "time" -version = "2.3.0" +version = "2.4.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -326,7 +326,7 @@ modules = [ [[package]] org = "ballerina" name = "url" -version = "2.3.0" +version = "2.4.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -337,7 +337,7 @@ modules = [ [[package]] org = "ballerina" name = "uuid" -version = "1.6.0" +version = "1.7.0" dependencies = [ {org = "ballerina", name = "crypto"}, {org = "ballerina", name = "jballerina.java"}, @@ -363,7 +363,7 @@ modules = [ [[package]] org = "ballerinax" name = "postgresql" -version = "1.10.0" +version = "1.11.0" dependencies = [ {org = "ballerina", name = "crypto"}, {org = "ballerina", name = "io"}, @@ -381,10 +381,10 @@ name = "idp_domain_service" version = "PROJECT_VERSION" dependencies = [ {org = "ballerina", name = "http"}, + {org = "ballerina", name = "io"}, {org = "ballerina", name = "jwt"}, {org = "ballerina", name = "lang.array"}, {org = "ballerina", name = "log"}, - {org = "ballerina", name = "os"}, {org = "ballerina", name = "regex"}, {org = "ballerina", name = "sql"}, {org = "ballerina", name = "test"}, diff --git a/runtime/config-deployer-service/ballerina/APIClient.bal b/runtime/config-deployer-service/ballerina/APIClient.bal index c88967703b..1203e32010 100644 --- a/runtime/config-deployer-service/ballerina/APIClient.bal +++ b/runtime/config-deployer-service/ballerina/APIClient.bal @@ -656,8 +656,6 @@ public class APIClient { } if operationPoliciesToUse is APIOperationPolicies { APKOperationPolicy[]? request = operationPoliciesToUse.request; - if request is APKOperations[] { - } } return routeFilters; } diff --git a/runtime/config-deployer-service/ballerina/Ballerina.toml b/runtime/config-deployer-service/ballerina/Ballerina.toml index 6644bef3ed..bf92fd9445 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.2" +distribution = "2201.8.0" [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 5b0ed1eb78..77a1d66899 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.2" +distribution = "2201.8.0" [build-options] observabilityIncluded = false diff --git a/runtime/config-deployer-service/ballerina/Dependencies.toml b/runtime/config-deployer-service/ballerina/Dependencies.toml index 72faac8368..d63b791a5f 100644 --- a/runtime/config-deployer-service/ballerina/Dependencies.toml +++ b/runtime/config-deployer-service/ballerina/Dependencies.toml @@ -5,12 +5,12 @@ [ballerina] dependencies-toml-version = "2" -distribution-version = "2201.7.2" +distribution-version = "2201.8.0" [[package]] org = "ballerina" name = "auth" -version = "2.9.0" +version = "2.10.0" dependencies = [ {org = "ballerina", name = "crypto"}, {org = "ballerina", name = "jballerina.java"}, @@ -22,7 +22,7 @@ dependencies = [ [[package]] org = "ballerina" name = "cache" -version = "3.6.0" +version = "3.7.0" dependencies = [ {org = "ballerina", name = "constraint"}, {org = "ballerina", name = "jballerina.java"}, @@ -33,7 +33,7 @@ dependencies = [ [[package]] org = "ballerina" name = "constraint" -version = "1.3.0" +version = "1.4.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -44,7 +44,7 @@ modules = [ [[package]] org = "ballerina" name = "crypto" -version = "2.4.1" +version = "2.5.0" dependencies = [ {org = "ballerina", name = "jballerina.java"}, {org = "ballerina", name = "time"} @@ -56,7 +56,7 @@ modules = [ [[package]] org = "ballerina" name = "file" -version = "1.8.1" +version = "1.9.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -70,7 +70,7 @@ modules = [ [[package]] org = "ballerina" name = "http" -version = "2.9.3" +version = "2.10.0" dependencies = [ {org = "ballerina", name = "auth"}, {org = "ballerina", name = "cache"}, @@ -102,7 +102,7 @@ modules = [ [[package]] org = "ballerina" name = "io" -version = "1.5.0" +version = "1.6.0" dependencies = [ {org = "ballerina", name = "jballerina.java"}, {org = "ballerina", name = "lang.value"} @@ -122,7 +122,7 @@ modules = [ [[package]] org = "ballerina" name = "jballerina.java.arrays" -version = "1.3.0" +version = "1.4.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -133,7 +133,7 @@ modules = [ [[package]] org = "ballerina" name = "jwt" -version = "2.9.0" +version = "2.10.0" dependencies = [ {org = "ballerina", name = "cache"}, {org = "ballerina", name = "crypto"}, @@ -233,7 +233,7 @@ modules = [ [[package]] org = "ballerina" name = "log" -version = "2.8.1" +version = "2.9.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -247,7 +247,7 @@ modules = [ [[package]] org = "ballerina" name = "mime" -version = "2.8.0" +version = "2.9.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -260,7 +260,7 @@ modules = [ [[package]] org = "ballerina" name = "oauth2" -version = "2.9.0" +version = "2.10.0" dependencies = [ {org = "ballerina", name = "cache"}, {org = "ballerina", name = "crypto"}, @@ -273,7 +273,7 @@ dependencies = [ [[package]] org = "ballerina" name = "observe" -version = "1.1.0" +version = "1.2.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -281,7 +281,7 @@ dependencies = [ [[package]] org = "ballerina" name = "os" -version = "1.7.0" +version = "1.8.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"} @@ -302,7 +302,7 @@ modules = [ [[package]] org = "ballerina" name = "sql" -version = "1.10.0" +version = "1.11.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -313,7 +313,7 @@ dependencies = [ [[package]] org = "ballerina" name = "task" -version = "2.4.0" +version = "2.5.0" dependencies = [ {org = "ballerina", name = "jballerina.java"}, {org = "ballerina", name = "time"} @@ -335,7 +335,7 @@ modules = [ [[package]] org = "ballerina" name = "time" -version = "2.3.0" +version = "2.4.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -343,7 +343,7 @@ dependencies = [ [[package]] org = "ballerina" name = "url" -version = "2.3.0" +version = "2.4.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -354,7 +354,7 @@ modules = [ [[package]] org = "ballerina" name = "uuid" -version = "1.6.0" +version = "1.7.0" dependencies = [ {org = "ballerina", name = "crypto"}, {org = "ballerina", name = "jballerina.java"}, diff --git a/runtime/config-deployer-service/ballerina/Dependencies.toml.template b/runtime/config-deployer-service/ballerina/Dependencies.toml.template index f58463cfb6..1783b7b2a2 100644 --- a/runtime/config-deployer-service/ballerina/Dependencies.toml.template +++ b/runtime/config-deployer-service/ballerina/Dependencies.toml.template @@ -5,12 +5,12 @@ [ballerina] dependencies-toml-version = "2" -distribution-version = "2201.7.2" +distribution-version = "2201.8.0" [[package]] org = "ballerina" name = "auth" -version = "2.9.0" +version = "2.10.0" dependencies = [ {org = "ballerina", name = "crypto"}, {org = "ballerina", name = "jballerina.java"}, @@ -22,7 +22,7 @@ dependencies = [ [[package]] org = "ballerina" name = "cache" -version = "3.6.0" +version = "3.7.0" dependencies = [ {org = "ballerina", name = "constraint"}, {org = "ballerina", name = "jballerina.java"}, @@ -33,7 +33,7 @@ dependencies = [ [[package]] org = "ballerina" name = "constraint" -version = "1.3.0" +version = "1.4.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -44,7 +44,7 @@ modules = [ [[package]] org = "ballerina" name = "crypto" -version = "2.4.1" +version = "2.5.0" dependencies = [ {org = "ballerina", name = "jballerina.java"}, {org = "ballerina", name = "time"} @@ -56,7 +56,7 @@ modules = [ [[package]] org = "ballerina" name = "file" -version = "1.8.1" +version = "1.9.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -70,7 +70,7 @@ modules = [ [[package]] org = "ballerina" name = "http" -version = "2.9.3" +version = "2.10.0" dependencies = [ {org = "ballerina", name = "auth"}, {org = "ballerina", name = "cache"}, @@ -102,7 +102,7 @@ modules = [ [[package]] org = "ballerina" name = "io" -version = "1.5.0" +version = "1.6.0" dependencies = [ {org = "ballerina", name = "jballerina.java"}, {org = "ballerina", name = "lang.value"} @@ -122,7 +122,7 @@ modules = [ [[package]] org = "ballerina" name = "jballerina.java.arrays" -version = "1.3.0" +version = "1.4.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -133,7 +133,7 @@ modules = [ [[package]] org = "ballerina" name = "jwt" -version = "2.9.0" +version = "2.10.0" dependencies = [ {org = "ballerina", name = "cache"}, {org = "ballerina", name = "crypto"}, @@ -233,7 +233,7 @@ modules = [ [[package]] org = "ballerina" name = "log" -version = "2.8.1" +version = "2.9.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -247,7 +247,7 @@ modules = [ [[package]] org = "ballerina" name = "mime" -version = "2.8.0" +version = "2.9.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -260,7 +260,7 @@ modules = [ [[package]] org = "ballerina" name = "oauth2" -version = "2.9.0" +version = "2.10.0" dependencies = [ {org = "ballerina", name = "cache"}, {org = "ballerina", name = "crypto"}, @@ -273,7 +273,7 @@ dependencies = [ [[package]] org = "ballerina" name = "observe" -version = "1.1.0" +version = "1.2.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -281,7 +281,7 @@ dependencies = [ [[package]] org = "ballerina" name = "os" -version = "1.7.0" +version = "1.8.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"} @@ -302,7 +302,7 @@ modules = [ [[package]] org = "ballerina" name = "sql" -version = "1.10.0" +version = "1.11.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -313,7 +313,7 @@ dependencies = [ [[package]] org = "ballerina" name = "task" -version = "2.4.0" +version = "2.5.0" dependencies = [ {org = "ballerina", name = "jballerina.java"}, {org = "ballerina", name = "time"} @@ -335,7 +335,7 @@ modules = [ [[package]] org = "ballerina" name = "time" -version = "2.3.0" +version = "2.4.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -343,7 +343,7 @@ dependencies = [ [[package]] org = "ballerina" name = "url" -version = "2.3.0" +version = "2.4.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -354,7 +354,7 @@ modules = [ [[package]] org = "ballerina" name = "uuid" -version = "1.6.0" +version = "1.7.0" dependencies = [ {org = "ballerina", name = "crypto"}, {org = "ballerina", name = "jballerina.java"}, diff --git a/runtime/config-deployer-service/ballerina/Init.bal b/runtime/config-deployer-service/ballerina/Init.bal index f499f391a4..dac0025220 100644 --- a/runtime/config-deployer-service/ballerina/Init.bal +++ b/runtime/config-deployer-service/ballerina/Init.bal @@ -43,8 +43,7 @@ listener http:Listener ep0 = new (9443, secureSocket = { certFile: keyStores.tls.certFilePath, keyFile: keyStores.tls.keyFilePath } - }, - interceptors = [jwtValidationInterceptor, requestErrorInterceptor, responseErrorInterceptor] + } ); final runtimeUtil:APKConfValidator apkConfValidator; diff --git a/runtime/config-deployer-service/ballerina/artifact-deployer-api_service.bal b/runtime/config-deployer-service/ballerina/artifact-deployer-api_service.bal index b1fdac613d..437a369e86 100644 --- a/runtime/config-deployer-service/ballerina/artifact-deployer-api_service.bal +++ b/runtime/config-deployer-service/ballerina/artifact-deployer-api_service.bal @@ -1,7 +1,7 @@ import ballerina/http; import wso2/apk_common_lib as commons; -isolated service /api/deployer on ep0 { +isolated service http:InterceptableService /api/deployer on ep0 { # Deploy API # # + request - parameter description @@ -28,4 +28,9 @@ isolated service /api/deployer on ep0 { commons:Organization organization = authenticatedUserContext.organization; return check deployerClient.handleAPIUndeployment(apiId,organization); } + + public function createInterceptors() returns http:Interceptor|http:Interceptor[] { + http:Interceptor[] interceptors = [jwtValidationInterceptor, requestErrorInterceptor, responseErrorInterceptor]; + return interceptors; + } } diff --git a/runtime/config-deployer-service/ballerina/artifact-generator-api_service.bal b/runtime/config-deployer-service/ballerina/artifact-generator-api_service.bal index edc29dba79..d2d37d7056 100644 --- a/runtime/config-deployer-service/ballerina/artifact-generator-api_service.bal +++ b/runtime/config-deployer-service/ballerina/artifact-generator-api_service.bal @@ -2,7 +2,7 @@ import ballerina/http; import wso2/apk_common_lib as commons; -isolated service /api/configurator on ep0 { +isolated service http:InterceptableService /api/configurator on ep0 { # Create API configuration file from api specification. # # + request - parameter description @@ -29,4 +29,9 @@ isolated service /api/configurator on ep0 { enabled: true}; return check apiclient.getGeneratedK8sResources(request,organization); } + + public function createInterceptors() returns http:Interceptor|http:Interceptor[] { + http:Interceptor[] interceptors = [jwtValidationInterceptor, requestErrorInterceptor, responseErrorInterceptor]; + return interceptors; + } }