diff --git a/gradle.properties b/gradle.properties index 7c67ac67c..28d507805 100644 --- a/gradle.properties +++ b/gradle.properties @@ -58,3 +58,7 @@ stdlibGraphqlVersion=1.12.0 # Ballerinax Observer observeVersion=1.2.3 observeInternalVersion=1.2.2 + +# Enabled publishing insecure checksums, due to fail to publish to maven central +# Refer https://github.com/gradle/gradle/issues/11308 +systemProp.org.gradle.internal.publish.checksums.insecure=true 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)) }