Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
chore: nexus-publish plugin cannot publish multi-module project to ma…
Browse files Browse the repository at this point in the history
…ven central (#1512)

Until [this issue](gradle-nexus/publish-plugin#19) is resolved, gax cannot use nexus-publish to publish to maven central because the plugin do not persist stagingProfile information between command runs. Thus both the staging command and publish command has to be run in a single command. But, since gax has multiple modules(each modules gets staged in separate run) this is not a workable approach.

So currently, the library gets staged to sonatype. Publish it manually from there(Get permission to publish if you frequently publish gax-java or @Neenu1995  can publish). A possible move to maven pom might be a better solution also.
  • Loading branch information
Neenu1995 committed Oct 13, 2021
1 parent 1da3c43 commit 89b396a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .kokoro/release/stage.sh
Expand Up @@ -30,6 +30,9 @@ setup_environment_secrets
mkdir -p ${HOME}/.gradle
create_gradle_properties_file "${HOME}/.gradle/gradle.properties"

# This is a multi module project. Cannot publish directly to maven without
# resolving this issue https://github.com/gradle-nexus/publish-plugin/issues/19
# Might migrate to maven pom in the future.
./gradlew publishToSonatype

if [[ -n "${AUTORELEASE_PR}" ]]
Expand Down

0 comments on commit 89b396a

Please sign in to comment.