From f3cd3b6edddeae1843dcea1817add710476a88e5 Mon Sep 17 00:00:00 2001 From: GedMarc Date: Wed, 2 Oct 2019 10:45:59 +0200 Subject: [PATCH] https://github.com/FasterXML/jackson-jaxrs-providers/issues/114 --- README.md | 10 ++++++++++ json/src/moditect/module-info.java | 5 ++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 081e7fe1..0a078b05 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,16 @@ In addition there are format-specific annotations that may be used: * JSON has: * `com.fasterxml.jackson.jaxrs.json.annotation.JSONP` to define `JSONP` wrapping for serialized result + +## Module Considerations +* The JSON/JAX-RS module has multiple names depending on the version in use. To enable modular usage, add the requires statement that pertains directly to the implementation you are using. +``` +requires javax.ws.rs.api; //Older libraries +requires java.ws.rs; //Newer libraries +requires jakarta.ws.rs.api; //Reserved name for Jakarta Impl +``` + + ## Other For documentation, downloads links, check out [Wiki](../../wiki) diff --git a/json/src/moditect/module-info.java b/json/src/moditect/module-info.java index fd2604d0..3bc22708 100644 --- a/json/src/moditect/module-info.java +++ b/json/src/moditect/module-info.java @@ -6,7 +6,10 @@ requires com.fasterxml.jackson.module.jaxb; requires com.fasterxml.jackson.jaxrs.base; - requires javax.ws.rs.api; + + requires static javax.ws.rs.api; + requires static java.ws.rs; + requires static jakarta.ws.rs.api; exports com.fasterxml.jackson.jaxrs.json; exports com.fasterxml.jackson.jaxrs.json.annotation;