Skip to content

Conversation

@shai-almog
Copy link
Collaborator

Motivation

  • Centralize the Javadoc build flow used by CI and releases so the same script is reused in PRs and release pipelines.
  • Ensure Javadoc generation follows the CI Java 25 invocation and produces an artifact that can be packaged with releases.
  • Replace the old repository-root script with a predictable, CI-friendly script under .github so workflows can validate and attach the archive.

Description

  • Add a reusable script .github/scripts/build_javadocs.sh that copies sources, injects a minimal ImplementationFactory stub, runs javadoc (using JDK_25_HOME/JAVA_HOME when available), and produces CodenameOne/javadocs.zip.
  • Add a GitHub Actions workflow .github/workflows/javadocs.yml that runs on pull_request, push to main/master, and published release events, verifies CodenameOne/javadocs.zip, uploads it as an artifact, and attaches it to releases.
  • Update the PR workflow in .github/workflows/pr.yml to reuse the shared script for the JavaDocs step.
  • Update CodenameOne/build.xml to call the new script and remove the deprecated CodenameOne/build_javadoc.sh file.

Testing

  • No automated tests were executed locally as part of this change because it only modifies CI/build scripts and workflows.
  • A CI workflow Build JavaDocs was added that will validate the script when runs occur by checking for CodenameOne/javadocs.zip and uploading it as an artifact in CI.

Codex Task

@github-actions
Copy link

github-actions bot commented Feb 2, 2026

✅ Continuous Quality Report

Test & Coverage

Static Analysis

Generated automatically by the PR CI workflow.

@shai-almog shai-almog merged commit 8957f6e into master Feb 2, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants