From 297d6b8518edb4bb28b287ca0e124552bae85de7 Mon Sep 17 00:00:00 2001 From: TharmiganK Date: Wed, 19 Jun 2024 10:00:11 +0530 Subject: [PATCH 1/2] Enable publishing insecure checksums --- gradle.properties | 4 ++++ 1 file changed, 4 insertions(+) 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 From 05d924dc651489e226083a689eaa8b3f3faba23e Mon Sep 17 00:00:00 2001 From: TharmiganK Date: Wed, 19 Jun 2024 10:23:33 +0530 Subject: [PATCH 2/2] Fix nexus publish issues --- openapi-client-native/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) }