Skip to content

Conversation

@mpollmeier
Copy link
Contributor

It defaults to 5s, which often fails for our builds recently. sbt-sonatype already has a configurable timeout, so we're just passing that value on here.

Example for a failure:

2025-03-20 11:38:44.040Z  info [SonatypeCentralClient] Uploading bundle /home/runner/work/joern/joern/target/sonatype-staging/4.0.299-bundle/bundle.zip to Sonatype Central  - (SonatypeCentralClient.scala:72)
2025-03-20 11:38:47.814Z  info [SonatypeCentralService] Checking if deployment succeeded for deployment id: 583c03d8-b0cb-431f-b3d5-a7990a1e435d...  - (SonatypeCentralService.scala:27)
11:54:06.356 [main] ERROR sttp.client4.logging.slf4j.Slf4jLoggingBackend - Exception when sending request: POST https://central.sonatype.com/api/v1/publisher/status?id=583c03d8-b0cb-431f-b3d5-a7990a1e435d, took: 5.085s
sttp.client4.SttpClientException$TimeoutException: Exception when sending request: POST https://central.sonatype.com/api/v1/publisher/status?id=583c03d8-b0cb-431f-b3d5-a7990a1e435d
	at sttp.client4.SttpClientExceptionExtensions.defaultExceptionToSttpClientException(SttpClientExceptionExtensions.scala:21) ~[?:?]

https://github.com/joernio/joern/actions/runs/13967737826/job/39101942676

It defaults to 5s, which often fails for our builds recently.
sbt-sonatype already has a configurable timeout, so we're just passing
that value on here.
mpollmeier added a commit to mpollmeier/sbt-sonatype that referenced this pull request Mar 20, 2025
mpollmeier added a commit to mpollmeier/sbt-sonatype that referenced this pull request Mar 20, 2025
mpollmeier added a commit to ShiftLeftSecurity/sbt-ci-release-early that referenced this pull request Mar 20, 2025
mpollmeier added a commit to ShiftLeftSecurity/sbt-ci-release-early that referenced this pull request Mar 20, 2025
* used patched sbt-sonatype...

which includes xerial/sbt-sonatype#591

* upgrade gh actions dependencies

* released version
mpollmeier added a commit to joernio/joern that referenced this pull request Mar 20, 2025
@mpollmeier
Copy link
Contributor Author

@xerial when you have a moment.. :)

@mpollmeier
Copy link
Contributor Author

Because we had an urgent need to use this, I published this branch to maven central, it's usable via addSbtPlugin("com.michaelpollmeier" % "sbt-sonatype" % "3.12.2-18-2c83e453")

@mpollmeier
Copy link
Contributor Author

@xerial ping... this one should hopefully be straighforward to review.. :)

@mpollmeier
Copy link
Contributor Author

one more try - @xuwei-k @xerial I'd say this is rather straighforward..?

mpollmeier added a commit to mpollmeier/sbt-sonatype that referenced this pull request Jun 11, 2025
@xerial xerial merged commit c12341e into xerial:master Jun 12, 2025
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants