Skip to content

Bump org.apache.sling.commons.johnzon from 1.2.16 to 2.0.0#2560

Closed
jbonofre wants to merge 1 commit intoapache:mainfrom
jbonofre:bump-sling-johnzon-2.0.0
Closed

Bump org.apache.sling.commons.johnzon from 1.2.16 to 2.0.0#2560
jbonofre wants to merge 1 commit intoapache:mainfrom
jbonofre:bump-sling-johnzon-2.0.0

Conversation

@jbonofre
Copy link
Copy Markdown
Member

Supersedes #2345.

The sling.commons.johnzon 2.0.0 release wraps Apache Johnzon 2.x, which migrates from javax.json to jakarta.json. The Dependabot PR alone breaks the build with Unable to resolve framework features because the dependent stack also needs updating.

Changes

Version bumps (pom.xml)

  • org.apache.sling.commons.johnzon: 1.2.16 → 2.0.0
  • org.apache.felix.cm.json: 1.0.8 → 2.0.6 (exports org.apache.felix.cm.json.io, uses jakarta.json)
  • org.apache.felix.configurator: 1.0.16 → 1.0.18 (imports org.apache.felix.cm.json.io)

BOM / deps

  • Added jakarta.json:jakarta.json-api 2.1.3 to bom/pom.xml and as a provided dependency in features/core
  • Removed geronimo-json_1.1_spec from config/core and features/core (superseded by jakarta.json-api)

Java sources — update import from org.apache.felix.cm.json.Configurationsorg.apache.felix.cm.json.io.Configurations

  • config/core/.../JsonConfigInstaller.java
  • config/core/.../ConfigRepositoryImpl.java
  • features/core/.../FeatureConfigInstaller.java

The 2.0.0 release wraps Apache Johnzon 2.x which exports jakarta.json.*
instead of javax.json.*. This requires a coordinated upgrade of the
dependent stack:

- felix.cm.json 1.0.8 -> 2.0.6 (uses jakarta.json, exports
  org.apache.felix.cm.json.io instead of org.apache.felix.cm.json)
- felix.configurator 1.0.16 -> 1.0.18 (imports org.apache.felix.cm.json.io)
- Add jakarta.json:jakarta.json-api 2.1.3 to BOM and as provided
  dependency in features/core
- Update import in JsonConfigInstaller, ConfigRepositoryImpl and
  FeatureConfigInstaller from org.apache.felix.cm.json.Configurations
  to org.apache.felix.cm.json.io.Configurations
- Remove geronimo-json_1.1_spec compile dependency from config/core
  and features/core (replaced by jakarta.json-api)

Closes apache#2345
@jbonofre jbonofre closed this Apr 21, 2026
@jbonofre jbonofre deleted the bump-sling-johnzon-2.0.0 branch April 21, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant