Skip to content

Commit ad3ecce

Browse files
committed
Activate pre-java9 via a profile for better post Java8 support.
1 parent 5273f13 commit ad3ecce

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

affinity-test/pom.xml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@
5454
</dependencyManagement>
5555

5656
<dependencies>
57-
<dependency>
58-
<groupId>com.sun.java</groupId>
59-
<artifactId>tools</artifactId>
60-
</dependency>
6157
<dependency>
6258
<groupId>net.openhft</groupId>
6359
<artifactId>affinity</artifactId>
@@ -185,6 +181,26 @@
185181
</plugins>
186182
</build>
187183

184+
<profiles>
185+
<profile>
186+
<id>pre-java9</id>
187+
<dependencies>
188+
<dependency>
189+
<groupId>com.sun</groupId>
190+
<artifactId>tools</artifactId>
191+
<version>1.8.0</version>
192+
<scope>system</scope>
193+
<systemPath>${java.home}/../lib/tools.jar</systemPath>
194+
</dependency>
195+
</dependencies>
196+
<activation>
197+
<file>
198+
<exists>${java.home}/../lib/tools.jar</exists>
199+
</file>
200+
</activation>
201+
</profile>
202+
</profiles>
203+
188204
<scm>
189205
<url>scm:git:https://github.com/OpenHFT/Java-Thread-Affinity.git</url>
190206
<tag>HEAD</tag>

0 commit comments

Comments
 (0)