Skip to content

Commit 3f486e9

Browse files
Fixes testng
1 parent 133c546 commit 3f486e9

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

producer_testng/pom.xml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<dependency>
3737
<groupId>org.testng</groupId>
3838
<artifactId>testng</artifactId>
39-
<version>7.6.0</version>
39+
<version>7.9.0</version>
4040
<scope>test</scope>
4141
</dependency>
4242

@@ -69,6 +69,13 @@
6969
<configuration>
7070
<failIfNoTests>true</failIfNoTests>
7171
</configuration>
72+
<dependencies>
73+
<dependency>
74+
<groupId>org.apache.maven.surefire</groupId>
75+
<artifactId>surefire-testng</artifactId>
76+
<version>3.2.5</version>
77+
</dependency>
78+
</dependencies>
7279
</plugin>
7380

7481
<!-- SPRING CLOUD CONTRACT -->
@@ -79,11 +86,28 @@
7986
<version>${spring-cloud-contract.version}</version>
8087
<extensions>true</extensions>
8188
<configuration>
82-
<testFramework>JUNIT5</testFramework>
8389
<testFramework>TESTNG</testFramework>
8490
<packageWithBaseClasses>com.example</packageWithBaseClasses>
8591
</configuration>
8692
</plugin>
93+
<plugin>
94+
<groupId>org.codehaus.mojo</groupId>
95+
<artifactId>build-helper-maven-plugin</artifactId>
96+
<executions>
97+
<execution>
98+
<id>add-source</id>
99+
<phase>generate-test-sources</phase>
100+
<goals>
101+
<goal>add-test-source</goal>
102+
</goals>
103+
<configuration>
104+
<sources>
105+
<source>${project.build.directory}/generated-test-sources/contracts/</source>
106+
</sources>
107+
</configuration>
108+
</execution>
109+
</executions>
110+
</plugin>
87111

88112

89113
</plugins>

0 commit comments

Comments
 (0)