Skip to content

Commit 7f65e7d

Browse files
author
Rob Austin
committed
added java11 profile
1 parent 886117f commit 7f65e7d

File tree

1 file changed

+59
-4
lines changed

1 file changed

+59
-4
lines changed

pom.xml

Lines changed: 59 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@
1515
~ limitations under the License.
1616
-->
1717

18-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
18+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1920
<modelVersion>4.0.0</modelVersion>
2021

2122
<parent>
2223
<groupId>net.openhft</groupId>
2324
<artifactId>java-parent-pom</artifactId>
2425
<version>1.1.27</version>
25-
<relativePath />
26+
<relativePath/>
2627
</parent>
2728

2829
<artifactId>compiler</artifactId>
@@ -107,7 +108,7 @@
107108
<executable>java</executable>
108109
<arguments>
109110
<argument>-classpath</argument>
110-
<classpath />
111+
<classpath/>
111112
<argument>net.openhft.compiler.CompilerTest</argument>
112113
</arguments>
113114
</configuration>
@@ -164,12 +165,66 @@
164165

165166
</build>
166167

168+
<profiles>
169+
<profile>
170+
<id>sonar</id>
171+
<build>
172+
<plugins>
173+
<plugin>
174+
<groupId>org.sonarsource.scanner.maven</groupId>
175+
<artifactId>sonar-maven-plugin</artifactId>
176+
</plugin>
177+
<plugin>
178+
<groupId>org.jacoco</groupId>
179+
<artifactId>jacoco-maven-plugin</artifactId>
180+
<executions>
181+
<execution>
182+
<goals>
183+
<goal>prepare-agent</goal>
184+
</goals>
185+
</execution>
186+
<execution>
187+
<id>report</id>
188+
<phase>prepare-package</phase>
189+
<goals>
190+
<goal>report</goal>
191+
</goals>
192+
</execution>
193+
</executions>
194+
</plugin>
195+
</plugins>
196+
</build>
197+
</profile>
198+
<profile>
199+
<id>java11</id>
200+
<activation>
201+
<jdk>[11,)</jdk>
202+
</activation>
203+
<build>
204+
<plugins>
205+
<plugin>
206+
<groupId>org.apache.maven.plugins</groupId>
207+
<artifactId>maven-compiler-plugin</artifactId>
208+
<configuration>
209+
<source>11</source>
210+
<target>11</target>
211+
<compilerArgs>
212+
<arg>--add-exports=java.base/jdk.internal.ref=ALL-UNNAMED</arg>
213+
<arg>--add-exports=java.base/sun.nio.ch=ALL-UNNAMED</arg>
214+
</compilerArgs>
215+
</configuration>
216+
</plugin>
217+
</plugins>
218+
</build>
219+
</profile>
220+
</profiles>
221+
167222
<scm>
168223
<url>scm:git:[email protected]:OpenHFT/Java-Runtime-Compiler.git</url>
169224
<connection>scm:git:[email protected]:OpenHFT/Java-Runtime-Compiler.git</connection>
170225
<developerConnection>scm:git:[email protected]:OpenHFT/Java-Runtime-Compiler.git
171226
</developerConnection>
172-
<tag>ea</tag>
227+
<tag>ea</tag>
173228
</scm>
174229

175230
</project>

0 commit comments

Comments
 (0)