Skip to content

Commit

Permalink
[jwtk#519] Use moduleInfoSource, fix jdkVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarwell committed Apr 19, 2022
1 parent 5bc95b2 commit f323491
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 30 deletions.
15 changes: 8 additions & 7 deletions api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,14 @@
</goals>
<configuration>
<module>
<moduleInfo>
<name>io.jsonwebtoken.jjwt.api</name>
<exports>
io.jsonwebtoken;
io.jsonwebtoken.*;
</exports>
</moduleInfo>
<moduleInfoSource>
module io.jsonwebtoken.jjwt.api {
exports io.jsonwebtoken;
exports io.jsonwebtoken.io;
exports io.jsonwebtoken.lang;
exports io.jsonwebtoken.security;
}
</moduleInfoSource>
</module>
</configuration>
</execution>
Expand Down
16 changes: 13 additions & 3 deletions extensions/gson/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,19 @@
</goals>
<configuration>
<module>
<moduleInfo>
<name>io.jsonwebtoken.jjwt.ext.gson</name>
</moduleInfo>
<moduleInfoSource>
module io.jsonwebtoken.jjwt.ext.gson {
requires transitive com.google.gson;
requires io.jsonwebtoken.jjwt.api;

exports io.jsonwebtoken.gson.io;

provides io.jsonwebtoken.io.Deserializer with
io.jsonwebtoken.gson.io.GsonDeserializer;
provides io.jsonwebtoken.io.Serializer with
io.jsonwebtoken.gson.io.GsonSerializer;
}
</moduleInfoSource>
</module>
</configuration>
</execution>
Expand Down
18 changes: 15 additions & 3 deletions extensions/jackson/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,21 @@
</goals>
<configuration>
<module>
<moduleInfo>
<name>io.jsonwebtoken.jjwt.ext.jackson</name>
</moduleInfo>
<moduleInfoSource>
module io.jsonwebtoken.jjwt.ext.jackson {
requires transitive com.fasterxml.jackson.core;
requires transitive com.fasterxml.jackson.databind;
requires io.jsonwebtoken.jjwt.api;

exports io.jsonwebtoken.jackson.io;

provides io.jsonwebtoken.io.Deserializer with
io.jsonwebtoken.jackson.io.JacksonDeserializer;
provides io.jsonwebtoken.io.Serializer with
io.jsonwebtoken.jackson.io.JacksonSerializer;

}
</moduleInfoSource>
</module>
</configuration>
</execution>
Expand Down
15 changes: 12 additions & 3 deletions extensions/orgjson/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,18 @@
</goals>
<configuration>
<module>
<moduleInfo>
<name>io.jsonwebtoken.jjwt.ext.orgjson</name>
</moduleInfo>
<moduleInfoSource>
module io.jsonwebtoken.jjwt.ext.orgjson {
requires transitive json;
requires io.jsonwebtoken.jjwt.api;

exports io.jsonwebtoken.orgjson.io;

provides io.jsonwebtoken.io.Deserializer with io.jsonwebtoken.orgjson.io.OrgJsonDeserializer;
provides io.jsonwebtoken.io.Serializer with io.jsonwebtoken.orgjson.io.OrgJsonSerializer;
}

</moduleInfoSource>
</module>
</configuration>
</execution>
Expand Down
30 changes: 19 additions & 11 deletions impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,25 @@
</goals>
<configuration>
<module>
<moduleInfo>
<name>io.jsonwebtoken.jjwt.impl</name>
<requires>
io.jsonwebtoken.jjwt.api;
</requires>
<uses>
io.jsonwebtoken.CompressionCodec;
io.jsonwebtoken.io.Deserializer;
io.jsonwebtoken.io.Serializer;
</uses>
</moduleInfo>
<moduleInfoSource>
module io.jsonwebtoken.jjwt.impl {
requires io.jsonwebtoken.jjwt.api;

exports io.jsonwebtoken.impl;
exports io.jsonwebtoken.impl.compression;
exports io.jsonwebtoken.impl.crypto;
exports io.jsonwebtoken.impl.lang;

provides io.jsonwebtoken.CompressionCodec with
io.jsonwebtoken.impl.compression.DeflateCompressionCodec,
io.jsonwebtoken.impl.compression.GzipCompressionCodec;

uses io.jsonwebtoken.CompressionCodec;
uses io.jsonwebtoken.io.Deserializer;
uses io.jsonwebtoken.io.Serializer;
}

</moduleInfoSource>
</module>
</configuration>
</execution>
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<gmavenplus.version>1.6.1</gmavenplus.version>
<moditect.version>1.0.0.RC2</moditect.version>

<jdk.version>1.7</jdk.version>
<jdk.version>7</jdk.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<buildNumber>${user.name}-${maven.build.timestamp}</buildNumber>

Expand Down Expand Up @@ -550,8 +550,8 @@
<jdk>[,9)</jdk>
</activation>
<properties>
<maven.compiler.source>${jdk.version}</maven.compiler.source>
<maven.compiler.target>${jdk.version}</maven.compiler.target>
<maven.compiler.source>1.${jdk.version}</maven.compiler.source>
<maven.compiler.target>1.${jdk.version}</maven.compiler.target>
</properties>
</profile>
<profile>
Expand Down

0 comments on commit f323491

Please sign in to comment.