Skip to content

ci: upload each release to javadoc.io so latest stays current - #1736

Closed
WilliamBergamin wants to merge 1 commit into
mainfrom
ci-javadoc-io-refresh
Closed

WilliamBergamin wants to merge 1 commit into
mainfrom
ci-javadoc-io-refresh

Conversation

@WilliamBergamin

Copy link
Copy Markdown
Contributor

Summary

This pull request adds a workflow that uploads each new release to javadoc.io, so https://javadoc.io/doc/com.slack.api/<module>/latest points at it.

Cause: javadoc.io stopped auto-indexing Maven Central releases. latest now only moves when a version is synced and uploaded from its versions page (maxcellent/javadoc.io#252), and opening a version URL no longer triggers that (maxcellent/javadoc.io#253). Before this ran, latest showed 1.49.0 for most bolt modules, and eight modules had no versions at all.

  • scripts/refresh_javadoc_io.sh <version> waits for Maven Central's maven-metadata.xml to list the version, then sends the same Sync and Upload form requests the versions page does, for every root pom.xml module except *-examples.
  • .github/workflows/javadoc-io.yml runs it on a published, non-prerelease GitHub Release, or by hand with a version input. It is separate from release.yml, so a javadoc.io hiccup never blocks publishing, and dispatching it never starts a deploy.
  • The maintainers guide notes the workflow and the manual fallback.

Testing

  • Run ./scripts/refresh_javadoc_io.sh 1.56.0 locally. All 19 modules report ok, and https://javadoc.io/doc/com.slack.api/bolt/latest/index.html now shows 1.56.0. 1.56.0 is already uploaded from my run, so a rerun only confirms it stays idempotent.
  • After merge, run the "Refresh javadoc.io" workflow from Actions with version=1.56.0 to confirm the GitHub runner gets past javadoc.io's Cloudflare.

Category

  • bolt (Bolt for Java)
  • bolt-{sub modules} (Bolt for Java - optional modules)
  • slack-api-client (Slack API Clients)
  • slack-api-model (Slack API Data Models)
  • slack-api-*-kotlin-extension (Kotlin Extensions for Slack API Clients)
  • slack-app-backend (The primitive layer of Bolt for Java)

Requirements

🤖 Generated with Claude Code

javadoc.io no longer auto-indexes new Maven Central versions; latest only
moves when a version is synced and uploaded from its versions page. A new
workflow runs on release (or by hand with a version) and does that for
every published module once Maven Central lists the version.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@codecov

codecov Bot commented Dec 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.95%. Comparing base (3bb525c) to head (a491b72).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1736      +/-   ##
============================================
- Coverage     75.96%   75.95%   -0.01%     
+ Complexity     4979     4978       -1     
============================================
  Files           490      490              
  Lines         15113    15113              
  Branches       1586     1586              
============================================
- Hits          11480    11479       -1     
- Misses         2773     2774       +1     
  Partials        860      860              
Flag Coverage Δ
jdk-14 75.95% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@WilliamBergamin

Copy link
Copy Markdown
Contributor Author

Closing this. javadoc.io has no supported way to trigger an upload. Since it stopped auto-indexing Maven Central (maxcellent/javadoc.io#252), the only option is replaying the Sync and Upload form requests from its versions page. Those are undocumented and can change without notice, so they don't belong in our release pipeline. If javadoc.io adds a real trigger (maxcellent/javadoc.io#253), we can revisit. For now, 1.56.0 is uploaded for every module.

@WilliamBergamin
WilliamBergamin deleted the ci-javadoc-io-refresh branch December 2, 2026 17:32
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.

1 participant