Skip to content

Commit

Permalink
Fix #340: convert to "native" module-info
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 19, 2025
1 parent ebcb134 commit 3c66ac0
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
module tools.jackson.datatype.jsr310 {
// Java-Time Main artifact Module descriptor
module tools.jackson.datatype.jsr310
{
requires com.fasterxml.jackson.annotation;

requires tools.jackson.core;
requires tools.jackson.databind;
requires transitive tools.jackson.databind;

exports tools.jackson.datatype.jsr310;
exports tools.jackson.datatype.jsr310.deser;
Expand Down
23 changes: 23 additions & 0 deletions datetime/src/test/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Java-Time (unit) Test Module descriptor
module tools.jackson.datatype.jsr310
{
// Since we are not split from Main artifact, will not
// need to depend on Main artifact -- but need its dependencies

requires com.fasterxml.jackson.annotation;
requires tools.jackson.core;
requires tools.jackson.databind;

// Additional test lib/framework dependencies
requires junit; // JUnit 4

// Further, need to open up test packages for JUnit et al
opens tools.jackson.datatype.jsr310;
opens tools.jackson.datatype.jsr310.deser;
opens tools.jackson.datatype.jsr310.deser.key;
opens tools.jackson.datatype.jsr310.failing;
opens tools.jackson.datatype.jsr310.key;
opens tools.jackson.datatype.jsr310.misc;
opens tools.jackson.datatype.jsr310.ser;
opens tools.jackson.datatype.jsr310.util;
}
3 changes: 2 additions & 1 deletion release-notes/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ due to number of types.

3.0.0 (not yet released)

- #68: Parsing of `ZoneId` should respect `ALLOW_COERCION_OF_SCALARS`
#68: Parsing of `ZoneId` should respect `ALLOW_COERCION_OF_SCALARS`
wrt empty String
#340: Change 3.0 to use `module-info.java` directly [JSTEP-11]
- Minimum Java baseline: Java 17
- Deprecate "paramater names" and "datatypes" modules as functionality
now included directly in `jackson-databind`
Expand Down

0 comments on commit 3c66ac0

Please sign in to comment.