Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java SDK Publish workflow broken for sonatype #191

Open
vishalg0wda opened this issue Nov 24, 2024 · 0 comments
Open

Java SDK Publish workflow broken for sonatype #191

vishalg0wda opened this issue Nov 24, 2024 · 0 comments

Comments

@vishalg0wda
Copy link

vishalg0wda commented Nov 24, 2024

Issue: sdk-publish Action Fails for Java Artifacts with Sonatype Central Publishing

Description

The sdk-publish GitHub Action is failing when attempting to publish Java artifacts using the recommended Sonatype Central publishing option.

Error

Sample failed run: https://github.com/vishalg0wda/petstore-java/actions/runs/11992517676/job/33432458157

* What went wrong:
Task 'sonatypeCentralUpload' not found in root project 'openapi'.

* Try:
> Run gradlew tasks to get a list of available tasks.
> For more on name expansion, please refer to https://docs.gradle.org/8.5/userguide/command_line_interface.html#sec:name_abbreviation in the Gradle documentation.
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org./

BUILD FAILED in 8s
Error: Process completed with exit code 1.

Steps to Reproduce

  1. Bootstrap a speakeasy project selecting Java SDK target.
  2. Configure publishing. Follow the recommendation to use the maven sonatype central portal.
  3. Trigger the SDK publish action.

Note:
I was able to successfully publish an SDK by setting useSonatypeLegacy: true in the workflow.yaml. See: https://github.com/vishalg0wda/petstore-java/actions/runs/11992712833

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant