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)) } }