diff --git a/gradle.properties b/gradle.properties index 67f65542e..d36eed3d8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,7 +5,7 @@ version=2.0.2-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 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)) } }