Skip to content

Commit c77129b

Browse files
committed
Keep the dependency and declare testng.version in the profile
1 parent 98339e7 commit c77129b

1 file changed

Lines changed: 13 additions & 16 deletions

File tree

pom.xml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,13 @@
192192
<version>2.7.3</version>
193193
<scope>runtime</scope>
194194
</dependency>
195+
196+
<dependency>
197+
<groupId>org.testng</groupId>
198+
<artifactId>testng</artifactId>
199+
<version>${testng.version}</version>
200+
<scope>test</scope>
201+
</dependency>
195202
</dependencies>
196203

197204
<properties>
@@ -470,28 +477,18 @@
470477
<activation>
471478
<jdk>(,11)</jdk>
472479
</activation>
473-
<dependencies>
474-
<dependency>
475-
<groupId>org.testng</groupId>
476-
<artifactId>testng</artifactId>
477-
<version>7.5</version>
478-
<scope>test</scope>
479-
</dependency>
480-
</dependencies>
480+
<properties>
481+
<testng.version>7.5</testng.version>
482+
</properties>
481483
</profile>
482484
<profile>
483485
<id>jdk11+</id>
484486
<activation>
485487
<jdk>[11,)</jdk>
486488
</activation>
487-
<dependencies>
488-
<dependency>
489-
<groupId>org.testng</groupId>
490-
<artifactId>testng</artifactId>
491-
<version>7.9.0</version>
492-
<scope>test</scope>
493-
</dependency>
494-
</dependencies>
489+
<properties>
490+
<testng.version>7.9.0</testng.version>
491+
</properties>
495492
</profile>
496493
</profiles>
497494
</project>

0 commit comments

Comments
 (0)