diff --git a/openapi-client-native/build.gradle b/openapi-client-native/build.gradle index d54efd3e5..b9f83783f 100644 --- a/openapi-client-native/build.gradle +++ b/openapi-client-native/build.gradle @@ -118,7 +118,7 @@ publishing { tasks.withType(PublishToMavenRepository) { onlyIf { - (clientNativeVersion.endsWith('-SNAPSHOT') || clientNativePublish) && + (clientNativeVersion.endsWith('-SNAPSHOT') || clientNativePublish.toBoolean()) && ((repository == publishing.repositories.GitHub && publication == publishing.publications.GitHub) || (repository == publishing.repositories.WSO2Nexus && publication == publishing.publications.WSO2Nexus)) }