You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[JSTEP-11] Change 3.0 to use module-info.java directly for build (instead of via Moditect) #4891
In Jackson 2.x we use Moditect plugin to add module-info.class, instead of relying on javac. This because build is done using JDK 8 which cannot handle module-info.java.
But with Jackson 3.0 using JDK 17 or above we can and should convert.
NOTE: all modules should do this, except for jackson-annotations which remains JDK 8 built for now.
changed the title [-]Change 3.0 to use `module-info.java` directly, remove use of Moditect[/-][+]Change 3.0 to use `module-info.java` directly for build (instead of via Moditect)[/+]on Jan 11, 2025
Ok, so: I think we will try to do the same for every Jackson module. At this point following modules converted to natively use module-info.java:
jackson-annotations
jackson-core (was challenging due to shading of FastDoubleParser but managed to make it work)
jackson-databind
jackson-dataformat-xml
Next things to tackle would be:
jackson-modules-base
jackson-dataformats-binary
jackson-dataformats-text
Changes in matching PR (#4892) may help although for most modules are much simpler to change.
In fact, a better example is probably one for XML module: FasterXML/jackson-dataformat-xml#702
changed the title [-]Change 3.0 to use `module-info.java` directly for build (instead of via Moditect)[/-][+][JSTEP-11] Change 3.0 to use `module-info.java` directly for build (instead of via Moditect)[/+]on Jan 14, 2025
Activity
[-]Change 3.0 to use `module-info.java` directly, remove use of Moditect[/-][+]Change 3.0 to use `module-info.java` directly for build (instead of via Moditect)[/+]cowtowncoder commentedon Jan 12, 2025
Done!
cowtowncoder commentedon Jan 12, 2025
Ok, so: I think we will try to do the same for every Jackson module. At this point following modules converted to natively use
module-info.java:jackson-annotationsjackson-core(was challenging due to shading of FastDoubleParser but managed to make it work)jackson-databindjackson-dataformat-xmlNext things to tackle would be:
jackson-modules-basejackson-dataformats-binaryjackson-dataformats-textChanges in matching PR (#4892) may help although for most modules are much simpler to change.
In fact, a better example is probably one for XML module: FasterXML/jackson-dataformat-xml#702
/cc @JooHyukKim @pjfanning @yawkat @k163377
[-]Change 3.0 to use `module-info.java` directly for build (instead of via Moditect)[/-][+][JSTEP-11] Change 3.0 to use `module-info.java` directly for build (instead of via Moditect)[/+]