Skip to content

Add Moditect, source module info, to allow Kotlin module usage with Java Module system #385

@cowtowncoder

Description

@cowtowncoder

Since Jackson does not require Java 9 (or higher baseline), module system can not be used to create module-info.class.
But most Jackson components/modules are using Moditect (https://github.com/moditect/moditect) -- support added in 2.11 -- to produce necessary metadata even when building using Java 8 tools.
It would be good to add necessary build support to Kotlin module too.

This issue:

FasterXML/jackson-databind#2273

can show what is needed; basic addition would be:

  1. Add src/moditect/module-info.java with dependency definitions (see Joda module's file, f.ex: https://github.com/FasterXML/jackson-datatype-joda/blob/2.12/src/moditect/module-info.java )
  2. Add plugin invocation in pom.xml (see https://github.com/FasterXML/jackson-datatype-joda/blob/2.12/pom.xml#L106 )

with appropriate modifications -- mostly, need to know Kotlin core module's JPMS coordinates.

Metadata

Metadata

Assignees

Labels

good first issueIssue that seems easy to resolve and is likely a good candidate for contributors new to projecthacktoberfestIssue related to Hactoberfest2020 activities, eligible for additional rewards

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions