Check a dependency upgrade
check_dependency_upgradeFind the file:line locations a Maven or Android dependency upgrade would break, and check whether the new version raises minSdk. Run it before changing versions or reviewing update bots.
Instructions
Lists the places in this project (file:line) that break if a Maven dependency moves to another version: removed or changed methods, fields and classes it calls, extends or overrides, from the project's compiled classes, and counts the dependency's breaking changes the project does not use. For an Android library (AAR) it also reports when the new version raises minSdk above this project's. Build the project first (the way it is usually built). Call it before changing a dependency's version, or to review a Dependabot or Renovate update.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dependency": "<dependency>"
},
"name": "check_dependency_upgrade"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | The version to move to. Optional: its latest release. | |
| from | No | The version the project uses now. Optional: read from pom.xml, build.gradle(.kts) or gradle/libs.versions.toml. | |
| current | No | The project's compiled classes: folders or jars. Optional: found in target/ or build/ (every module's output in a multi-module build). | |
| project | No | Folder of the project or module (with its pom.xml or build.gradle). Optional: defaults to the folder the server was started in. Relative paths are resolved against it. | |
| dependency | Yes | The dependency to upgrade, GROUP:ARTIFACT (e.g. com.squareup.okhttp3:okhttp). |