Skip to content

Commit

Permalink
Convert Smile provider
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 23, 2025
1 parent 5e69074 commit fcdecbc
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 34 deletions.
5 changes: 0 additions & 5 deletions smile/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.moditect</groupId>
<artifactId>moditect-maven-plugin</artifactId>
</plugin>

</plugins>
</build>
</project>
21 changes: 21 additions & 0 deletions smile/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// JAX-RS Smile module-info for Main artifact
module tools.jackson.jaxrs.smile
{
requires tools.jackson.core;
requires transitive tools.jackson.databind;
requires tools.jackson.dataformat.smile;
requires tools.jackson.module.jaxb;

requires tools.jackson.jaxrs.base;

requires java.ws.rs;

exports tools.jackson.jaxrs.smile;
// [jaxrs-providers#119]: CXF, RESTEasy, OpenAPI require reflective access
opens tools.jackson.jaxrs.smile;

provides javax.ws.rs.ext.MessageBodyReader with
tools.jackson.jaxrs.smile.JacksonSmileProvider;
provides javax.ws.rs.ext.MessageBodyWriter with
tools.jackson.jaxrs.smile.JacksonSmileProvider;
}
29 changes: 0 additions & 29 deletions smile/src/moditect/module-info.java

This file was deleted.

24 changes: 24 additions & 0 deletions smile/src/test/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// JAX-RS Smile module-info for (unit) Tests
module tools.jackson.jaxrs.smile
{
// Since we are not split from Main artifact, will not
// need to depend on Main artifact -- but need its dependencies

requires tools.jackson.core;
requires tools.jackson.databind;
requires tools.jackson.dataformat.smile;
requires tools.jackson.module.jaxb;

requires tools.jackson.jaxrs.base;

requires java.ws.rs;

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

// Further, need to open up test packages for JUnit et al

opens tools.jackson.jaxrs.smile;
opens tools.jackson.jaxrs.smile.dw;
opens tools.jackson.jaxrs.smile.jersey;
}

0 comments on commit fcdecbc

Please sign in to comment.