Skip to content

Commit bccb2c8

Browse files
authored
Merge pull request ome#88 from sbesson/testng
Use Maven profiles to handle different versions of TestNG
2 parents eca9c1c + c77129b commit bccb2c8

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

pom.xml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
<dependency>
197197
<groupId>org.testng</groupId>
198198
<artifactId>testng</artifactId>
199-
<version>6.8</version>
199+
<version>${testng.version}</version>
200200
<scope>test</scope>
201201
</dependency>
202202
</dependencies>
@@ -472,5 +472,23 @@
472472
</plugins>
473473
</build>
474474
</profile>
475+
<profile>
476+
<id>jdk8-only</id>
477+
<activation>
478+
<jdk>(,11)</jdk>
479+
</activation>
480+
<properties>
481+
<testng.version>7.5</testng.version>
482+
</properties>
483+
</profile>
484+
<profile>
485+
<id>jdk11+</id>
486+
<activation>
487+
<jdk>[11,)</jdk>
488+
</activation>
489+
<properties>
490+
<testng.version>7.9.0</testng.version>
491+
</properties>
492+
</profile>
475493
</profiles>
476494
</project>

0 commit comments

Comments
 (0)