Skip to content

Commit 72fb0f4

Browse files
committed
Add java17 module
1 parent f47c8ef commit 72fb0f4

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

pom.xml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,20 @@
180180
<multiReleaseOutput>true</multiReleaseOutput>
181181
</configuration>
182182
</execution>
183+
<execution>
184+
<id>compile-java-17</id>
185+
<phase>compile</phase>
186+
<goals>
187+
<goal>compile</goal>
188+
</goals>
189+
<configuration>
190+
<release>17</release>
191+
<compileSourceRoots>
192+
<compileSourceRoot>${project.basedir}/src/main/java17</compileSourceRoot>
193+
</compileSourceRoots>
194+
<multiReleaseOutput>true</multiReleaseOutput>
195+
</configuration>
196+
</execution>
183197
</executions>
184198
</plugin>
185199
<plugin>
@@ -247,7 +261,7 @@
247261
</execution>
248262
</executions>
249263
<configuration>
250-
<source>${java.version}</source>
264+
<source>17</source>
251265
<doclint>none</doclint>
252266
<detectJavaApiLink>false</detectJavaApiLink>
253267
<failOnWarnings>false</failOnWarnings>

src/main/java17/module-info.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import org.openapitools.jackson.nullable.JsonNullableModule;
2+
import org.openapitools.jackson.nullable.JsonNullableJackson3Module;
3+
4+
module org.openapitools.jackson.nullable {
5+
requires static com.fasterxml.jackson.databind;
6+
requires static tools.jackson.databind;
7+
requires static jakarta.validation;
8+
requires static java.validation;
9+
10+
exports org.openapitools.jackson.nullable;
11+
12+
provides com.fasterxml.jackson.databind.Module with JsonNullableModule;
13+
provides tools.jackson.databind.JacksonModule with JsonNullableJackson3Module;
14+
provides javax.validation.valueextraction.ValueExtractor with org.openapitools.jackson.nullable.JsonNullableValueExtractor;
15+
provides jakarta.validation.valueextraction.ValueExtractor with org.openapitools.jackson.nullable.JsonNullableJakartaValueExtractor;
16+
}

0 commit comments

Comments
 (0)