Skip to content

Commit f2c7c6c

Browse files
committed
Supporting specific API of JRE 11 in multi-release JAR
1 parent c415448 commit f2c7c6c

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

pom.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,36 @@ limitations under the License.
218218
</pluginManagement>
219219
</build>
220220
</profile>
221+
<profile>
222+
<id>jdk11+</id>
223+
<activation>
224+
<jdk>[11,)</jdk>
225+
</activation>
226+
<build>
227+
<pluginManagement>
228+
<plugins>
229+
<plugin>
230+
<artifactId>maven-compiler-plugin</artifactId>
231+
<executions>
232+
<execution>
233+
<id>compile-java-11</id>
234+
<goals>
235+
<goal>compile</goal>
236+
</goals>
237+
<configuration>
238+
<release>11</release>
239+
<compileSourceRoots>
240+
<compileSourceRoot>${project.basedir}/src/main/java11</compileSourceRoot>
241+
</compileSourceRoots>
242+
<multiReleaseOutput>true</multiReleaseOutput>
243+
</configuration>
244+
</execution>
245+
</executions>
246+
</plugin>
247+
</plugins>
248+
</pluginManagement>
249+
</build>
250+
</profile>
221251
<profile>
222252
<id>plexus-release</id>
223253
<build>

0 commit comments

Comments
 (0)