Skip to content

Commit 868b55e

Browse files
author
Davide Melfi
committed
build: upgrade surefire
1 parent d8ffbf1 commit 868b55e

File tree

4 files changed

+19
-5
lines changed
  • aws-lambda-java-events-sdk-transformer
  • aws-lambda-java-runtime-interface-client
  • aws-lambda-java-tests
  • samples/kinesis-firehose-event-handler

4 files changed

+19
-5
lines changed

aws-lambda-java-events-sdk-transformer/pom.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
<sdk.v1.version>1.11.914</sdk.v1.version>
4040
<sdk.v2.version>2.15.40</sdk.v2.version>
4141
<junit-jupiter.version>5.14.3</junit-jupiter.version>
42+
<maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version>
4243
</properties>
4344

4445
<distributionManagement>
@@ -80,11 +81,14 @@
8081
<plugins>
8182
<plugin>
8283
<artifactId>maven-surefire-plugin</artifactId>
83-
<version>2.22.2</version>
84+
<version>${maven-surefire-plugin.version}</version>
85+
<configuration>
86+
<failIfNoTests>true</failIfNoTests>
87+
</configuration>
8488
</plugin>
8589
<plugin>
8690
<artifactId>maven-failsafe-plugin</artifactId>
87-
<version>2.22.2</version>
91+
<version>${maven-surefire-plugin.version}</version>
8892
</plugin>
8993
</plugins>
9094
</build>

aws-lambda-java-runtime-interface-client/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
<maven-deploy-plugin.version>3.1.1</maven-deploy-plugin.version>
4040
<junit-jupiter.version>5.14.3</junit-jupiter.version>
4141
<maven-checkstyle-plugin.version>3.4.0</maven-checkstyle-plugin.version>
42+
<maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version>
4243
<!--
4344
The test/integration/codebuild/buildspec.*.yml files will set -DmultiArch=false
4445
as a workaround for executing within Github Actions. At time of writing (2022-04-08) the
@@ -126,7 +127,7 @@
126127
</plugin>
127128
<plugin>
128129
<artifactId>maven-surefire-plugin</artifactId>
129-
<version>3.0.0-M9</version>
130+
<version>${maven-surefire-plugin.version}</version>
130131
<configuration>
131132
<argLine>${argLineForReflectionTestOnly} ${argLine}</argLine>
132133
</configuration>

aws-lambda-java-tests/pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3636
<junit.version>5.14.3</junit.version>
3737
<jacoco.maven.plugin.version>0.8.7</jacoco.maven.plugin.version>
38+
<maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version>
3839
</properties>
3940

4041
<dependencies>
@@ -249,7 +250,10 @@
249250
<plugin>
250251
<groupId>org.apache.maven.plugins</groupId>
251252
<artifactId>maven-surefire-plugin</artifactId>
252-
<version>2.22.2</version>
253+
<version>${maven-surefire-plugin.version}</version>
254+
<configuration>
255+
<failIfNoTests>true</failIfNoTests>
256+
</configuration>
253257
</plugin>
254258
</plugins>
255259
</build>

samples/kinesis-firehose-event-handler/pom.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
<maven.compiler.target>1.8</maven.compiler.target>
3737
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3838
<junit-jupiter.version>5.14.3</junit-jupiter.version>
39+
<maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version>
40+
3941
</properties>
4042

4143
<dependencies>
@@ -69,7 +71,10 @@
6971
<plugin>
7072
<groupId>org.apache.maven.plugins</groupId>
7173
<artifactId>maven-surefire-plugin</artifactId>
72-
<version>2.22.2</version>
74+
<version>${maven-surefire-plugin.version}</version>
75+
<configuration>
76+
<failIfNoTests>true</failIfNoTests>
77+
</configuration>
7378
</plugin>
7479
</plugins>
7580
</build>

0 commit comments

Comments
 (0)