Skip to content

Commit 5e85911

Browse files
committed
PIP-289 Java 17 upgrade
1 parent 031ae03 commit 5e85911

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

pom.xml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.snomed</groupId>
99
<artifactId>snomed-parent-bom</artifactId>
10-
<version>1.0.12</version>
10+
<version>2.0.0-SNAPSHOT</version>
1111
</parent>
1212

1313
<groupId>org.snomed.otf</groupId>
@@ -74,6 +74,31 @@
7474

7575
<build>
7676
<plugins>
77+
<!--
78+
Add the Add-Opens to the manifest file to allow snomed-owl-toolkit to work with java 17
79+
Remove this when the owl-api is updated to use version 5
80+
-->
81+
<plugin>
82+
<groupId>org.apache.maven.plugins</groupId>
83+
<artifactId>maven-jar-plugin</artifactId>
84+
<version>3.3.0</version>
85+
<executions>
86+
<execution>
87+
<id>default-jar</id>
88+
<phase>package</phase>
89+
<goals>
90+
<goal>jar</goal>
91+
</goals>
92+
<configuration>
93+
<archive>
94+
<manifestEntries>
95+
<Add-Opens>java.base/java.lang</Add-Opens>
96+
</manifestEntries>
97+
</archive>
98+
</configuration>
99+
</execution>
100+
</executions>
101+
</plugin>
77102
<!-- Create Executable Application Archive -->
78103
<plugin>
79104
<groupId>org.springframework.boot</groupId>

0 commit comments

Comments
 (0)