build(utilities): make sure JUnit 4 and 5 dependencies are optional (#1596)

Also removed duplicate managed versions of JUnit 4.13.2 and
mockwebserver 4.11.0.

Fixes #1561
This commit is contained in:
Márk Czotter 2024-04-16 02:24:03 +02:00 committed by GitHub
parent e78042940e
commit 59a749a842
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 4 deletions

View File

@ -89,7 +89,6 @@
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.ibm.icu</groupId>
<artifactId>icu4j</artifactId>
@ -107,18 +106,21 @@
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
@ -126,12 +128,14 @@
<artifactId>junit-vintage-engine</artifactId>
<version>${junit_jupiter_version}</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
@ -139,6 +143,7 @@
<artifactId>junit-platform-launcher</artifactId>
<version>${junit_platform_launcher_version}</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
@ -146,13 +151,14 @@
<artifactId>fhir-test-cases</artifactId>
<version>${validator_test_case_version}</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
@ -161,14 +167,13 @@
<version>3.1.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>mockwebserver</artifactId>
<version>4.11.0</version>
<scope>test</scope>
</dependency>
<!--
<dependency>
<groupId>com.squareup.okhttp3</groupId>