Skip to content

Commit

Permalink
Upgrade junit and surefire versions for samples (#1264)
Browse files Browse the repository at this point in the history
* upgrade surefire to 3.1.2

* upgrade junit to 5.10.0

* add junit vintage to hybrid sample to run all tests with mvn
  • Loading branch information
liga-oz authored Aug 21, 2023
1 parent bd65785 commit b0acbbe
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
4 changes: 2 additions & 2 deletions samples/java-security-usage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<apache.httpclient.version>4.5.14</apache.httpclient.version>
<jakarta.servlet.api.version>6.0.0</jakarta.servlet.api.version>
<assertj.version>3.24.2</assertj.version>
<junit.version>5.9.2</junit.version>
<junit.version>5.10.0</junit.version>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -105,7 +105,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M4</version>
<version>3.1.2</version>
</plugin>
</plugins>
</build>
Expand Down
11 changes: 11 additions & 0 deletions samples/spring-security-hybrid-usage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@
<artifactId>java-security-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<version>5.10.0</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand All @@ -99,6 +105,11 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.1.2</version>
</plugin>
<plugin>
<groupId>org.owasp</groupId> <!--scans for vulnerabilities-->
<artifactId>dependency-check-maven</artifactId>
Expand Down
3 changes: 1 addition & 2 deletions samples/spring-security-xsuaa-usage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<version>5.9.2</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -94,7 +93,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M4</version>
<version>3.1.2</version>
</plugin>
<plugin>
<groupId>org.owasp</groupId> <!--scans for vulnerabilities-->
Expand Down
2 changes: 1 addition & 1 deletion spring-xsuaa-it/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0</version>
<version>3.1.2</version>
</plugin>
</plugins>
</build>
Expand Down

0 comments on commit b0acbbe

Please sign in to comment.