diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d3c6ce5..4a8a480 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -24,24 +24,24 @@ Commits](https://www.conventionalcommits.org/) for structuring commit messages. cd mcp-toolbox-sdk-java ``` -3. Maven clean install: +3. Build the project: ```bash mvn clean install ``` -This would directly generate the package JAR in the local (Developement env's) .m2 directory. - -But if you want to generate it in a specific directory: - -4. Create a directory to store the JAR: +This will generate the package JAR in your local `.m2` repository, making it available for other local Maven projects. + +4. (Optional) Run deploy to a local directory for verification: ```bash - mkdir -p gcs-repo + mvn deploy -DaltDeploymentRepository=local::default::file://$(pwd)/target/staging-deploy ``` -5. Run deploy using $(pwd) to get the full path: - ```bash - mvn deploy -DaltDeploymentRepository=gcs-repo::default::file://$(pwd)/gcs-repo - ``` -This tells Maven to deploy to a local folder named `gcs-repo` in the correct directory structure. +## Release Process + +This repository uses [Release Please](https://github.com/googleapis/release-please) to automate the release process. + +1. **Pull Requests**: When code is merged into the `main` branch, Release Please analyzes the commit messages (which must follow [Conventional Commits](https://www.conventionalcommits.org/)). +2. **Release PR**: Release Please creates or updates a special "Release PR" that updates the `CHANGELOG.md` and bumps the version in `pom.xml`. +3. **Release Creation**: When a maintainer approves and merges the Release PR, Release Please tags the commit, creates a GitHub Release, and triggers the publishing workflow (to Maven Central). Use this package in your test application. diff --git a/pom.xml b/pom.xml index f9c5119..da143bf 100644 --- a/pom.xml +++ b/pom.xml @@ -14,11 +14,11 @@ limitations under the License. --> - - - 4.0.0 + + com.google.cloud + sdk-platform-java-config + 3.55.1 + com.google.cloud.mcp mcp-toolbox-sdk-java @@ -29,7 +29,9 @@ 17 17 - UTF-8 + 2.15.2 + 1.23.0 + 2.15.2 1.23.0 @@ -64,13 +66,4 @@ - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.11.0 - - - diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..3c5998e --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,9 @@ +{ + "packages": { + ".": { + "release-type": "java", + "package-name": "mcp-toolbox-sdk-java" + } + }, + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" +} diff --git a/release-please-manifest.json b/release-please-manifest.json new file mode 100644 index 0000000..466df71 --- /dev/null +++ b/release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.1.0" +}