From 398d8d77f3dc6af19b8160da5df75ebe621001ea Mon Sep 17 00:00:00 2001 From: TharmiganK Date: Tue, 18 Jun 2024 18:48:32 +0530 Subject: [PATCH 1/3] Enable client native publish --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 7c67ac67c..bd59e6305 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,7 +5,7 @@ version=2.1.0-SNAPSHOT # Client Native Version clientNativeVersion=1.0.1-SNAPSHOT # Mark this as false to skip publishing the client native artifacts -clientNativePublish=false +clientNativePublish=true #dependency ballerinaLangVersion=2201.9.1 From 2570aaa71d99fbd87603e0d6d633e1f82666d1ce Mon Sep 17 00:00:00 2001 From: TharmiganK Date: Tue, 18 Jun 2024 18:49:30 +0530 Subject: [PATCH 2/3] Update client native publish logic --- openapi-client-native/build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openapi-client-native/build.gradle b/openapi-client-native/build.gradle index 3115c6064..d54efd3e5 100644 --- a/openapi-client-native/build.gradle +++ b/openapi-client-native/build.gradle @@ -118,9 +118,9 @@ publishing { tasks.withType(PublishToMavenRepository) { onlyIf { - (repository == publishing.repositories.GitHub && publication == publishing.publications.GitHub) || - (repository == publishing.repositories.WSO2Nexus && publication == publishing.publications.WSO2Nexus - && (clientNativeVersion.endsWith('-SNAPSHOT') || clientNativePublish)) + (clientNativeVersion.endsWith('-SNAPSHOT') || clientNativePublish) && + ((repository == publishing.repositories.GitHub && publication == publishing.publications.GitHub) || + (repository == publishing.repositories.WSO2Nexus && publication == publishing.publications.WSO2Nexus)) } } From 00499a594a43641f39d2f863900f24c316c1f80b Mon Sep 17 00:00:00 2001 From: TharmiganK Date: Tue, 18 Jun 2024 18:50:38 +0530 Subject: [PATCH 3/3] Disable client native publish --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index bd59e6305..7c67ac67c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,7 +5,7 @@ version=2.1.0-SNAPSHOT # Client Native Version clientNativeVersion=1.0.1-SNAPSHOT # Mark this as false to skip publishing the client native artifacts -clientNativePublish=true +clientNativePublish=false #dependency ballerinaLangVersion=2201.9.1