Skip to content

Commit

Permalink
SNOW-1333078: Add explicitly surefire autodetected dependencies (#1739)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-dprzybysz authored Apr 29, 2024
1 parent 6927fff commit 2da252d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ci/container/test_component.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export MAVEN_OPTS="$MAVEN_OPTS -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=fa
cd $SOURCE_ROOT

# Avoid connection timeout on plugin dependency fetch or fail-fast when dependency cannot be fetched
mvn --batch-mode --show-version dependency:resolve-plugins
mvn --batch-mode --show-version dependency:go-offline

for c in "${CATEGORY[@]}"; do
c=$(echo $c | sed 's/ *$//g')
Expand Down
21 changes: 21 additions & 0 deletions parent-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,18 @@
<version>${awaitility.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit4</artifactId>
<version>${version.plugin.surefire}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>common-junit48</artifactId>
<version>${version.plugin.surefire}</version>
<scope>test</scope>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down Expand Up @@ -725,5 +737,14 @@
<groupId>org.awaitility</groupId>
<artifactId>awaitility</artifactId>
</dependency>
<!-- surefire dependencies are autodetected by the test plugins - we want to have them installed explicitly -->
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit4</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>common-junit48</artifactId>
</dependency>
</dependencies>
</project>

0 comments on commit 2da252d

Please sign in to comment.