Skip to content

Commit

Permalink
Merge pull request #1726 from ballerina-platform/2.0.x-client-native-fix
Browse files Browse the repository at this point in the history
[2.0.x] Fix client native publish issues
  • Loading branch information
TharmiganK authored Jun 18, 2024
2 parents f05c675 + b16c0c9 commit 058fce7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions openapi-client-native/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}

Expand Down

0 comments on commit 058fce7

Please sign in to comment.