Skip to content

Commit f058e27

Browse files
authored
Move Java to monorepo: Phase 06: Cutover and Cleanup (#1472)
* WIP Phase 06 * Update badges to come from the correct place * Update badges to come from the correct place * Phase 06 cutover: fix links to standalone repo - Update `package-info.java` `@see` link from `github/copilot-sdk-java` to `github/copilot-sdk/tree/main/java` - Remove Star History section from `java/README.md` (referenced the old standalone repo) * Remove prompt files before seeking review * Put this to user gitignore global * Put this to user gitignore global
1 parent 23f0951 commit f058e27

3 files changed

Lines changed: 16 additions & 36 deletions

File tree

java/README.md

Lines changed: 11 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
# GitHub Copilot SDK for Java
22

3-
[![Build](https://github.com/github/copilot-sdk-java/actions/workflows/build-test.yml/badge.svg)](https://github.com/github/copilot-sdk-java/actions/workflows/build-test.yml)
4-
[![Site](https://github.com/github/copilot-sdk-java/actions/workflows/deploy-site.yml/badge.svg)](https://github.com/github/copilot-sdk-java/actions/workflows/deploy-site.yml)
5-
[![Coverage](.github/badges/jacoco.svg)](https://github.github.io/copilot-sdk-java/snapshot/jacoco/index.html)
6-
[![Documentation](https://img.shields.io/badge/docs-online-brightgreen)](https://github.github.io/copilot-sdk-java/)
3+
[![Build](https://github.com/github/copilot-sdk/actions/workflows/java-sdk-tests.yml/badge.svg)](https://github.com/github/copilot-sdk/actions/workflows/java-sdk-tests.yml)
74
[![Java 17+](https://img.shields.io/badge/Java-17%2B-blue?logo=openjdk&logoColor=white)](https://openjdk.org/)
85
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
96

107
#### Latest release
11-
[![GitHub Release Date](https://img.shields.io/github/release-date/github/copilot-sdk-java)](https://github.com/github/copilot-sdk-java/releases)
12-
[![GitHub Release](https://img.shields.io/github/v/release/github/copilot-sdk-java)](https://github.com/github/copilot-sdk-java/releases)
8+
9+
[![GitHub Release Date](https://img.shields.io/github/release-date/github/copilot-sdk)](https://github.com/github/copilot-sdk/releases)
10+
[![GitHub Release](https://img.shields.io/github/v/release/github/copilot-sdk)](https://github.com/github/copilot-sdk/releases)
1311
[![Maven Central](https://img.shields.io/maven-central/v/com.github/copilot-sdk-java)](https://central.sonatype.com/artifact/com.github/copilot-sdk-java)
14-
[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen)](https://github.github.io/copilot-sdk-java/latest/)
1512
[![Javadoc](https://javadoc.io/badge2/com.github/copilot-sdk-java/javadoc.svg?q=1)](https://javadoc.io/doc/com.github/copilot-sdk-java/latest/index.html)
1613

1714
## Background
@@ -129,31 +126,20 @@ See the full source of [`jbang-example.java`](jbang-example.java) for a complete
129126
Or run it directly from the repository:
130127

131128
```bash
132-
jbang https://github.com/github/copilot-sdk-java/blob/latest/jbang-example.java
129+
jbang https://github.com/github/copilot-sdk/blob/main/java/jbang-example.java
133130
```
134131

135-
## Documentation
136-
137-
📚 **[Full Documentation](https://github.github.io/copilot-sdk-java/)** — Complete API reference, advanced usage examples, and guides.
138-
139-
### Quick Links
140-
141-
- [Getting Started](https://github.github.io/copilot-sdk-java/latest/documentation.html)
142-
- [Javadoc API Reference](https://github.github.io/copilot-sdk-java/latest/apidocs/)
143-
- [MCP Servers Integration](https://github.github.io/copilot-sdk-java/latest/mcp.html)
144-
145-
146132
## Projects Using This SDK
147133

148-
| Project | Description |
149-
|---------|-------------|
134+
| Project | Description |
135+
| ----------------------------------------------------------------------------- | ------------------------------------------ |
150136
| [JMeter Copilot Plugin](https://github.com/brunoborges/jmeter-copilot-plugin) | JMeter plugin for AI-assisted load testing |
151137

152138
> Want to add your project? Open a PR!
153139
154140
## CI/CD Workflows
155141

156-
This project uses several GitHub Actions workflows for building, testing, releasing, and syncing with the reference implementation SDK.
142+
This project uses several GitHub Actions workflows for building, testing, releasing, and syncing with the reference implementation SDK.
157143

158144
See [WORKFLOWS.md](docs/WORKFLOWS.md) for a full overview and details on each workflow.
159145

@@ -168,15 +154,16 @@ This SDK tracks the official [Copilot SDK](https://github.com/github/copilot-sdk
168154
**Automated sync** — A [scheduled GitHub Actions workflow](.github/workflows/reference-impl-sync.yml) runs on the schedule specified in that file. It checks for new reference implementation commits since the last merge (tracked in [`.lastmerge`](.lastmerge)), and if changes are found, creates an issue labeled `reference-impl-sync` and assigns it to the GitHub Copilot coding agent. Any previously open `reference-impl-sync` issues are automatically closed. The sync also updates the `@github/copilot` version in both `pom.xml` and `scripts/codegen/package.json` to keep schemas and test CLI in lockstep.
169155

170156
**Reusable prompt** — The merge workflow is defined in [`agentic-merge-reference-impl.prompt.md`](.github/prompts/agentic-merge-reference-impl.prompt.md). It can be triggered manually from:
157+
171158
- **VS Code Copilot Chat** — type `/agentic-merge-reference-impl`
172159
- **GitHub Copilot CLI** — use `copilot` CLI with the same skill reference
173160

174161
### Development Setup
175162

176163
```bash
177164
# Clone the repository
178-
git clone https://github.com/github/copilot-sdk-java.git
179-
cd copilot-sdk-java
165+
git clone https://github.com/github/copilot-sdk.git
166+
cd copilot-sdk/java
180167

181168
# Enable git hooks for code formatting
182169
git config core.hooksPath .githooks
@@ -206,10 +193,3 @@ MIT — see [LICENSE](LICENSE) for details.
206193
## Acknowledgement
207194

208195
- Initially developed with Copilot and [Bruno Borges](https://www.linkedin.com/in/brunocborges/).
209-
210-
## Star History
211-
212-
[![Star History Chart](https://api.star-history.com/svg?repos=github/copilot-sdk-java&type=Date)](https://www.star-history.com/#github/copilot-sdk-java&Date)
213-
214-
⭐ Drop a star if you find this useful!
215-

java/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<name>GitHub Copilot SDK :: Java</name>
1414
<description>SDK for programmatic control of GitHub Copilot CLI</description>
15-
<url>https://github.com/github/copilot-sdk-java</url>
15+
<url>https://github.com/github/copilot-sdk</url>
1616

1717
<licenses>
1818
<license>
@@ -30,9 +30,9 @@
3030
</developers>
3131

3232
<scm>
33-
<connection>scm:git:https://github.com/github/copilot-sdk-java.git</connection>
34-
<developerConnection>scm:git:https://github.com/github/copilot-sdk-java.git</developerConnection>
35-
<url>https://github.com/github/copilot-sdk-java</url>
33+
<connection>scm:git:https://github.com/github/copilot-sdk.git</connection>
34+
<developerConnection>scm:git:https://github.com/github/copilot-sdk.git</developerConnection>
35+
<url>https://github.com/github/copilot-sdk</url>
3636
<tag>HEAD</tag>
3737
</scm>
3838

java/src/main/java/com/github/copilot/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
*
5252
* @see com.github.copilot.CopilotClient
5353
* @see com.github.copilot.CopilotSession
54-
* @see <a href= "https://github.com/github/copilot-sdk-java">GitHub
54+
* @see <a href= "https://github.com/github/copilot-sdk/tree/main/java">GitHub
5555
* Repository</a>
5656
*/
5757
package com.github.copilot;

0 commit comments

Comments
 (0)