Repository navigation
fix!: resolve Kiota JARs on the Java module path - #2267
Vincent Biret (baywet) wants to merge 2 commits into
Conversation
Give each runtime JAR a unique automatic module name and relocate the Azure authentication and serializer implementations to remove split packages. BREAKING CHANGE: Update imports and rebuild code that references the moved Azure or serializer types. Update JPMS requires declarations for Kiota JARs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: fa9184fd-1aba-42dc-a658-ac365f53a891
|
Upgrade clarification: the Maven/Gradle dependency coordinates ( For classpath consumers, the breaking change is limited to Java code that references the moved Azure authentication or serializer classes: update the imports and rebuild. The Kiota Java generator also needs to emit the new serializer factory imports so regenerated SDKs compile against the new runtime. Consumers using JPMS additionally need to update the relevant |
|
This pull request has conflicting changes, the author must resolve the conflicts before this pull request can be merged. |
…ota-jpms-module-path Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
|
Conflicts have been resolved. A maintainer will take a look shortly. |
Refs #1108 and #1224.
This draft shows the smallest runtime change for the next major version: give all eight standard JARs distinct
Automatic-Module-Namevalues and remove the two split packages. The shared abstractions, OkHttp and bundle Java packages, and Maven/Gradle coordinates stay unchanged. There are no explicit module descriptors, so linking Kiota into ajlinkimage is out of scope.Consumer migration
ObservabilityOptionscom.microsoft.kiota.authenticationcom.microsoft.kiota.authentication.azureDefaultGsonBuildercom.microsoft.kiota.serializationcom.microsoft.kiota.serialization.jsoncom.microsoft.kiota.serializationcom.microsoft.kiota.serialization.formcom.microsoft.kiota.serializationcom.microsoft.kiota.serialization.textcom.microsoft.kiota.serializationcom.microsoft.kiota.serialization.multipartUpdate imports for moved types and rebuild; existing binaries referencing those types are not compatible. Module-path consumers must also replace
requires com.microsoft.kiotawith the names of the components they use. For example, JSON usescom.microsoft.kiota.serialization.json, while shared types such asParsableare incom.microsoft.kiota.abstractionswithout changing their imports.Validation and release follow-up
checkModulePathto CI to resolve the built Kiota JARs together and catch duplicate names or packages. This check covers the Kiota JARs, not an entire downstream dependency graph.