Skip to content

On branch edburns/80-java-monorepo-add-01 Commence work on https://github.com/github/copilot-sdk-partners/issues/80#1271

Draft
edburns wants to merge 41 commits into
mainfrom
edburns/80-java-monorepo-add-01
Draft

On branch edburns/80-java-monorepo-add-01 Commence work on https://github.com/github/copilot-sdk-partners/issues/80#1271
edburns wants to merge 41 commits into
mainfrom
edburns/80-java-monorepo-add-01

Conversation

@edburns
Copy link
Copy Markdown
Collaborator

@edburns edburns commented May 13, 2026

Related work item. https://github.com/github/copilot-sdk-partners/issues/80 .

new file: 80-java-monorepo-add-01-remove-before-merge/20260512-prompts.md

  • Commence practice of keeping running prompts for sharing and review.

new file: 80-java-monorepo-add-01-remove-before-merge/dd-2989727-move-java-to-monorepo-plan.md

  • Document WIP plan for review.

@edburns edburns self-assigned this May 13, 2026
@edburns edburns force-pushed the edburns/80-java-monorepo-add-01 branch 8 times, most recently from 3a6342c to c5fbc42 Compare May 18, 2026 23:04
edburns added 21 commits May 19, 2026 13:42
…thub.com/github/cnew file:   80-java-monorepo-add-01-remove-before-merge/20260512-prompts.md

- Commence practice of keeping running prompts for sharing and review.

new file:   80-java-monorepo-add-01-remove-before-merge/dd-2989727-move-java-to-monorepo-plan.md

- Document WIP plan for review.
modified:   80-java-monorepo-add-01-remove-before-merge/dd-2989727-move-java-to-monorepo-plan.md


modified:   .github/CODEOWNERS

- Add row mapping `java` to `@github/copilot-sdk-java`.

modified:   80-java-monorepo-add-01-remove-before-merge/dd-2989727-move-java-to-monorepo-plan.md

- Fix reference.

new:        80-java-monorepo-add-01-remove-before-merge/20260513-prompts.md

- Today's prompts.
modified:   80-java-monorepo-add-01-remove-before-merge/20260513-prompts.md
modified:   80-java-monorepo-add-01-remove-before-merge/dd-2989727-move-java-to-monorepo-plan.md

- WIP Phase 0.

.github/workflows/java-publish-maven.yml
.github/workflows/java-publish-snapshot.yml

- Copy over from `copilot-sdk-java-00`.

80-java-monorepo-add-01-remove-before-merge/ghcpsp-90-gpg-key-archive.sh
80-java-monorepo-add-01-remove-before-merge/ghcpsp-90-gpg-key-import.sh

- Durable way to hand off the ability to publish to maven central. Currently resides with @edburns.
edburns and others added 8 commits May 19, 2026 13:42
Copied from github/copilot-sdk-java: src/, pom.xml, config/,
scripts/codegen/, CHANGELOG.md, README.md, jbang-example.java,
.lastmerge, docs/adr/, mvnw, mvnw.cmd, .mvn/, .gitignore, test

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Since the Java SDK now lives inside the copilot-sdk monorepo,
point copilot.sdk.clone.dir at the monorepo root (../)
instead of cloning into target/. Remove the antrun git clone
execution entirely. Update SCM URLs to github/copilot-sdk.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Revert pom.xml to preserve the git-clone-based test harness setup
(copilot.sdk.clone.dir = target/copilot-sdk/) instead of pointing at
the monorepo root. Add scripts/codegen/package-lock.json (pins
@github/copilot@1.0.49-3) and .gitignore that were missed in the
initial file copy.
@edburns edburns force-pushed the edburns/80-java-monorepo-add-01 branch from ee23244 to db1892e Compare May 19, 2026 20:44
edburns and others added 12 commits May 19, 2026 15:38
Creates the Java SDK test workflow for the monorepo with:
- Push/PR triggers on java/** and test/** paths
- OS matrix: ubuntu, macos, windows (matching other SDKs)
- JDK 17 (microsoft distribution) with Maven cache
- Node.js setup for E2E test harness
- spotless:check formatting gate (Linux only)
- javadoc:javadoc verification (Linux only)
- mvn clean verify (build + all tests including E2E)
- Surefire report upload on failure

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add java/scripts/codegen/** and java/src/generated/** to path triggers
- Add java-codegen job that runs npx tsx java.ts from java/scripts/codegen/
- Checks for uncommitted changes in java/src/generated/ after running codegen

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Adapted from copilot-sdk-java codegen-agentic-fix.md with paths updated
for the monorepo structure (java/ prefix on all paths). The .lock.yml
could not be generated because gh aw compile timed out — it can be
compiled later when gh aw is available in an appropriate environment.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add JDK 17 (microsoft distribution) with Maven cache
- Add Java codegen npm cache-dependency-path
- Add Java codegen dependency install step
- Add java -version and mvn --version to verification

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add maven ecosystem entry for /java directory
- Add npm ecosystem entry for /java/scripts/codegen (codegen deps)
- Both use multi-ecosystem-group 'all' matching existing entries

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add push path filter (java/**, test/**, workflow, actions)
- Remove OS matrix, run on ubuntu-latest only
- Set permissions: contents write, checks write, pull-requests write
- Use SHA-pinned actions (matching copilot-sdk-java source)
- Add persist-credentials: false on checkout
- Use .github/actions/setup-copilot for COPILOT_CLI_PATH
- Add COPILOT_GITHUB_TOKEN and COPILOT_CLI_PATH env vars to mvn verify
- Add JaCoCo badge generation (generate-java-coverage-badge.sh)
- Add JaCoCo badge PR creation (peter-evans/create-pull-request)
- Add java-test-report composite action for step summary
- Upload test results artifact on main branch for site generation

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Reverts codegen-check.yml to its composition on main (no Java paths).
Creates java-codegen-check.yml adapted from the standalone repo's
codegen-check.yml with monorepo paths (java/ prefix, working-directory).
Updates java-codegen-fix.md to reference java-codegen-check workflow.

The java-codegen-fix.lock.yml could not be re-compiled because gh aw
is not responsive in this environment. Run 'gh aw compile java-codegen-fix'
to regenerate it.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Replace curl|bash gh-aw install with pinned setup action
  (github/gh-aw@4d44d0e89 v0.73.0, version: v0.68.3)
- Add 'git config core.hooksPath .githooks' to enable the repo-root
  pre-commit hook (runs Spotless on java/src/ changes)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add ignore rules for actions/github-script and github/gh-aw-actions
  to the github-actions entry (SHAs managed by gh aw compile)
- Add ignore for major version bumps on Maven dependencies (may drop
  Java 17 support or have breaking API changes)
- Use dedicated groups for Java: java-maven-deps and java-codegen-deps
  (separate from the monorepo-wide multi-ecosystem-group)
- Give Java entries their own schedule instead of multi-ecosystem-group

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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