Dependency convergence between msgraph-sdk-java-core for kiota 1.9.0 vs 1.8.10
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start with the attached pom.xml and reproduce the failure using Maven and the maven-enforcer-plugin. Compare the dependency versions pulled through microsoft-graph and microsoft-graph-core, then review the referenced msgraph-sdk-java-core PR 2041. Done means the reported dependency convergence errors no longer occur for the stated SDK versions.
Written by the indexing model from the issue text.
Description
Describe the bug
When importing the com.microsoft.graph:microsoft-graph:6.60.0 dependency, we get dependency convergence on quite a few imported dependencies. From what I can tell it is the same for "all" kiota versions in play by these two projects ( com.microsoft.graph:microsoft-graph-core:3.6.5 and com.microsoft.graph:microsoft-graph:6.60.0).
This issue presents itself when using the maven-enforcer-plugin, which is quite common. This eliminates issues where two different versions of the same dependency is imported by the same pom.xml
There are a few other convergence issues as well, but that is at least manageable when using Spring Boot (probably similar tech as well) since they control the versions of those Jackson libraries for instance.
Expected behavior
I would expect Microsoft projects to be aligned with "internal" versions, and for this not to be an issue even when using the enforcer-plugin. I would expect both com.microsoft.graph:microsoft-graph and com.microsoft.graph:microsoft-graph-core to use the same version of kiota-dependencies, since com.microsoft.graph:microsoft-graph includes com.microsoft.graph:microsoft-graph-core.
Whether they use 1.9.0, 1.8.12 or 1.8.10 doesn't really matter to me.
How to reproduce
- Create a new empty Maven project.
- Fill out the pom.xml like the attached file
- Run
mvn compileormvn packageor similar
SDK Version
6.60.0, but also 6.59.0 and 6.58.0
Latest version known to work for scenario above?
6.57.0
Known Workarounds
There are a few workarounds. Either provide dependency management of all the kiota dependencies, or downgrade to 6.57.0
Debug output
Click to expand log
mvn package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------< com.example:example >-------------------------
[INFO] Building example 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:3.6.2:enforce (enforce) @ example ---
[INFO] Rule 1: org.apache.maven.enforcer.rules.BanDuplicatePomDependencyVersions passed
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.495 s
[INFO] Finished at: 2026-01-20T21:10:02+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.6.2:enforce (enforce) on project example:
[ERROR] Rule 0: org.apache.maven.enforcer.rules.dependency.DependencyConvergence failed with message:
[ERROR] Failed while enforcing releasability.
[ERROR]
[ERROR] Dependency convergence error for org.jetbrains.kotlin:kotlin-stdlib-jdk8:jar:1.9.10. Paths to dependency are:
[ERROR] +-com.example:example:jar:1.0-SNAPSHOT
[ERROR] +-com.microsoft.graph:microsoft-graph:jar:6.60.0:compile
[ERROR] +-com.squareup.okhttp3:okhttp:jar:4.12.0:compile
[ERROR] +-com.squareup.okio:okio:jar:3.6.0:compile
[ERROR] +-com.squareup.okio:okio-jvm:jar:3.6.0:compile
[ERROR] +-org.jetbrains.kotlin:kotlin-stdlib-jdk8:jar:1.9.10:compile
[ERROR] and
[ERROR] +-com.example:example:jar:1.0-SNAPSHOT
[ERROR] +-com.microsoft.graph:microsoft-graph:jar:6.60.0:compile
[ERROR] +-com.squareup.okhttp3:okhttp:jar:4.12.0:compile
[ERROR] +-org.jetbrains.kotlin:kotlin-stdlib-jdk8:jar:1.8.21:compile
[ERROR]
[ERROR]
[ERROR] Dependency convergence error for com.microsoft.kiota:microsoft-kiota-serialization-form:jar:1.8.10. Paths to dependency are:
[ERROR] +-com.example:example:jar:1.0-SNAPSHOT
[ERROR] +-com.microsoft.graph:microsoft-graph:jar:6.60.0:compile
[ERROR] +-com.microsoft.graph:microsoft-graph-core:jar:3.6.5:compile
[ERROR] +-com.microsoft.kiota:microsoft-kiota-serialization-form:jar:1.8.10:runtime
[ERROR] and
[ERROR] +-com.example:example:jar:1.0-SNAPSHOT
[ERROR] +-com.microsoft.graph:microsoft-graph:jar:6.60.0:compile
[ERROR] +-com.microsoft.kiota:microsoft-kiota-serialization-form:jar:1.9.0:runtime
[ERROR]
[ERROR]
[ERROR] Dependency convergence error for com.google.errorprone:error_prone_annotations:jar:2.41.0. Paths to dependency are:
[ERROR] +-com.example:example:jar:1.0-SNAPSHOT
[ERROR] +-com.microsoft.graph:microsoft-graph:jar:6.60.0:compile
[ERROR] +-com.microsoft.graph:microsoft-graph-core:jar:3.6.5:compile
[ERROR] +-com.google.code.gson:gson:jar:2.13.2:runtime
[ERROR] +-com.google.errorprone:error_prone_annotations:jar:2.41.0:runtime
[ERROR] and
[ERROR] +-com.example:example:jar:1.0-SNAPSHOT
[ERROR] +-com.microsoft.graph:microsoft-graph:jar:6.60.0:compile
[ERROR] +-com.microsoft.graph:microsoft-graph-core:jar:3.6.5:compile
[ERROR] +-com.auth0:jwks-rsa:jar:0.23.0:runtime
[ERROR] +-com.google.guava:guava:jar:32.1.2-jre:runtime
[ERROR] +-com.google.errorprone:error_prone_annotations:jar:2.18.0:runtime
[ERROR]
[ERROR]
[ERROR] Dependency convergence error for com.microsoft.kiota:microsoft-kiota-serialization-text:jar:1.8.10. Paths to dependency are:
[ERROR] +-com.example:example:jar:1.0-SNAPSHOT
[ERROR] +-com.microsoft.graph:microsoft-graph:jar:6.60.0:compile
[ERROR] +-com.microsoft.graph:microsoft-graph-core:jar:3.6.5:compile
[ERROR] +-com.microsoft.kiota:microsoft-kiota-serialization-text:jar:1.8.10:runtime
[ERROR] and
[ERROR] +-com.example:example:jar:1.0-SNAPSHOT
[ERROR] +-com.microsoft.graph:microsoft-graph:jar:6.60.0:compile
[ERROR] +-com.microsoft.kiota:microsoft-kiota-serialization-text:jar:1.9.0:runtime
[ERROR]
[ERROR]
[ERROR] Dependency convergence error for com.microsoft.kiota:microsoft-kiota-authentication-azure:jar:1.8.10. Paths to dependency are:
[ERROR] +-com.example:example:jar:1.0-SNAPSHOT
[ERROR] +-com.microsoft.graph:microsoft-graph:jar:6.60.0:compile
[ERROR] +-com.microsoft.graph:microsoft-graph-core:jar:3.6.5:compile
[ERROR] +-com.microsoft.kiota:microsoft-kiota-authentication-azure:jar:1.8.10:compile
[ERROR] and
[ERROR] +-com.example:example:jar:1.0-SNAPSHOT
[ERROR] +-com.microsoft.graph:microsoft-graph:jar:6.60.0:compile
[ERROR] +-com.microsoft.kiota:microsoft-kiota-authentication-azure:jar:1.9.0:compile
[ERROR]
[ERROR]
[ERROR] Dependency convergence error for com.microsoft.kiota:microsoft-kiota-http-okHttp:jar:1.8.10. Paths to dependency are:
[ERROR] +-com.example:example:jar:1.0-SNAPSHOT
[ERROR] +-com.microsoft.graph:microsoft-graph:jar:6.60.0:compile
[ERROR] +-com.microsoft.graph:microsoft-graph-core:jar:3.6.5:compile
[ERROR] +-com.microsoft.kiota:microsoft-kiota-http-okHttp:jar:1.8.10:runtime
[ERROR] and
[ERROR] +-com.example:example:jar:1.0-SNAPSHOT
[ERROR] +-com.microsoft.graph:microsoft-graph:jar:6.60.0:compile
[ERROR] +-com.microsoft.kiota:microsoft-kiota-http-okHttp:jar:1.9.0:runtime
[ERROR]
[ERROR]
[ERROR] Dependency convergence error for com.microsoft.kiota:microsoft-kiota-serialization-multipart:jar:1.8.10. Paths to dependency are:
[ERROR] +-com.example:example:jar:1.0-SNAPSHOT
[ERROR] +-com.microsoft.graph:microsoft-graph:jar:6.60.0:compile
[ERROR] +-com.microsoft.graph:microsoft-graph-core:jar:3.6.5:compile
[ERROR] +-com.microsoft.kiota:microsoft-kiota-serialization-multipart:jar:1.8.10:runtime
[ERROR] and
[ERROR] +-com.example:example:jar:1.0-SNAPSHOT
[ERROR] +-com.microsoft.graph:microsoft-graph:jar:6.60.0:compile
[ERROR] +-com.microsoft.kiota:microsoft-kiota-serialization-multipart:jar:1.9.0:runtime
[ERROR]
[ERROR]
[ERROR] Dependency convergence error for com.microsoft.kiota:microsoft-kiota-serialization-json:jar:1.8.10. Paths to dependency are:
[ERROR] +-com.example:example:jar:1.0-SNAPSHOT
[ERROR] +-com.microsoft.graph:microsoft-graph:jar:6.60.0:compile
[ERROR] +-com.microsoft.graph:microsoft-graph-core:jar:3.6.5:compile
[ERROR] +-com.microsoft.kiota:microsoft-kiota-serialization-json:jar:1.8.10:runtime
[ERROR] and
[ERROR] +-com.example:example:jar:1.0-SNAPSHOT
[ERROR] +-com.microsoft.graph:microsoft-graph:jar:6.60.0:compile
[ERROR] +-com.microsoft.kiota:microsoft-kiota-serialization-json:jar:1.9.0:runtime
[ERROR]
[ERROR]
[ERROR] Dependency convergence error for com.fasterxml.jackson.core:jackson-databind:jar:2.18.4. Paths to dependency are:
[ERROR] +-com.example:example:jar:1.0-SNAPSHOT
[ERROR] +-com.microsoft.graph:microsoft-graph:jar:6.60.0:compile
[ERROR] +-com.microsoft.graph:microsoft-graph-core:jar:3.6.5:compile
[ERROR] +-com.azure:azure-core:jar:1.56.1:compile
[ERROR] +-com.fasterxml.jackson.core:jackson-databind:jar:2.18.4:compile
[ERROR] and
[ERROR] +-com.example:example:jar:1.0-SNAPSHOT
[ERROR] +-com.microsoft.graph:microsoft-graph:jar:6.60.0:compile
[ERROR] +-com.microsoft.graph:microsoft-graph-core:jar:3.6.5:compile
[ERROR] +-com.azure:azure-core:jar:1.56.1:compile
[ERROR] +-com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.18.4:compile
[ERROR] +-com.fasterxml.jackson.core:jackson-databind:jar:2.18.4:compile
[ERROR] and
[ERROR] +-com.example:example:jar:1.0-SNAPSHOT
[ERROR] +-com.microsoft.graph:microsoft-graph:jar:6.60.0:compile
[ERROR] +-com.microsoft.graph:microsoft-graph-core:jar:3.6.5:compile
[ERROR] +-com.auth0:jwks-rsa:jar:0.23.0:runtime
[ERROR] +-com.fasterxml.jackson.core:jackson-databind:jar:2.15.0:runtime
[ERROR] and
[ERROR] +-com.example:example:jar:1.0-SNAPSHOT
[ERROR] +-com.microsoft.graph:microsoft-graph:jar:6.60.0:compile
[ERROR] +-com.microsoft.graph:microsoft-graph-core:jar:3.6.5:compile
[ERROR] +-io.jsonwebtoken:jjwt-jackson:jar:0.13.0:runtime
[ERROR] +-com.fasterxml.jackson.core:jackson-databind:jar:2.12.7.1:runtime
[ERROR]
[ERROR]
[ERROR] Dependency convergence error for com.fasterxml.jackson.core:jackson-core:jar:2.18.4.1. Paths to dependency are:
[ERROR] +-com.example:example:jar:1.0-SNAPSHOT
[ERROR] +-com.microsoft.graph:microsoft-graph:jar:6.60.0:compile
[ERROR] +-com.microsoft.graph:microsoft-graph-core:jar:3.6.5:compile
[ERROR] +-com.azure:azure-core:jar:1.56.1:compile
[ERROR] +-com.fasterxml.jackson.core:jackson-core:jar:2.18.4.1:compile
[ERROR] and
[ERROR] +-com.example:example:jar:1.0-SNAPSHOT
[ERROR] +-com.microsoft.graph:microsoft-graph:jar:6.60.0:compile
[ERROR] +-com.microsoft.graph:microsoft-graph-core:jar:3.6.5:compile
[ERROR] +-com.azure:azure-core:jar:1.56.1:compile
[ERROR] +-com.fasterxml.jackson.core:jackson-databind:jar:2.18.4:compile
[ERROR] +-com.fasterxml.jackson.core:jackson-core:jar:2.18.4:compile
[ERROR] and
[ERROR] +-com.example:example:jar:1.0-SNAPSHOT
[ERROR] +-com.microsoft.graph:microsoft-graph:jar:6.60.0:compile
[ERROR] +-com.microsoft.graph:microsoft-graph-core:jar:3.6.5:compile
[ERROR] +-com.azure:azure-core:jar:1.56.1:compile
[ERROR] +-com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.18.4:compile
[ERROR] +-com.fasterxml.jackson.core:jackson-core:jar:2.18.4:compile
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Configuration
- Linux 5.15.0-130-generic x86_64 GNU/Linux
- Ubuntu 22.04.5 LT
- Java 21.0.5
- Maven 3.8.6
- Maven-enforcer-plugin 3.6.2
Other information
PR open for bumping msgraph-sdk-java-core to kiota 1.9.0: https://github.com/microsoftgraph/msgraph-sdk-java-core/pull/2041
- Dominant language
- Java
- Stars
- 444
- Forks
- 154
- Avg merge
- 18h 28m
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoftgraph/msgraph-sdk-java
-
status:waiting-for-triage type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
microsoftgraph/msgraph-sdk-java#2610 ·
-
status:waiting-for-triage type:bug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
microsoftgraph/msgraph-sdk-java#2656 ·
-
status:waiting-for-triage type:bug
Difficulty 4/5 3-5 days Newbie friendliness 38/100
microsoftgraph/msgraph-sdk-java#2654 ·
-
status:waiting-for-triage
Difficulty 4/5 3-5 days Newbie friendliness 35/100
microsoftgraph/msgraph-sdk-java#2639 ·
-
status:waiting-for-triage type:bug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
microsoftgraph/msgraph-sdk-java#2589 · 1 comment ·
All issues in microsoftgraph/msgraph-sdk-java
Similar issues
-
certification
Difficulty 1/5 Under an hour Newbie friendliness 80/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's Openbug ecr
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Needs: Triage Type: Feature request
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
AntennaPod/AntennaPod#8794 ·
-
agentic-workflows
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
github/copilot-sdk#2760 ·