Repository navigation
ci: upload each release to javadoc.io so latest stays current - #1736
WilliamBergamin wants to merge 1 commit into
Conversation
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 Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
|
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. |
Summary
This pull request adds a workflow that uploads each new release to javadoc.io, so
https://javadoc.io/doc/com.slack.api/<module>/latestpoints at it.Cause: javadoc.io stopped auto-indexing Maven Central releases.
latestnow 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,latestshowed 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'smaven-metadata.xmlto list the version, then sends the same Sync and Upload form requests the versions page does, for every rootpom.xmlmodule except*-examples..github/workflows/javadoc-io.ymlruns it on a published, non-prerelease GitHub Release, or by hand with aversioninput. It is separate fromrelease.yml, so a javadoc.io hiccup never blocks publishing, and dispatching it never starts a deploy.Testing
./scripts/refresh_javadoc_io.sh 1.56.0locally. All 19 modules reportok, 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.version=1.56.0to confirm the GitHub runner gets past javadoc.io's Cloudflare.Category
Requirements
🤖 Generated with Claude Code