Be more creative about JAXB exclusion to avoid issues with REST Assured

Note that it's really just to avoid REST Assured dependency to be overly
verbose on JDK 11+ as the JAXB dependency is really needed there.
This commit is contained in:
Guillaume Smet
2019-10-27 20:11:11 +01:00
parent 94805c4d3d
commit 7f9e5948e9
2 changed files with 13 additions and 2 deletions

View File

@@ -59,6 +59,8 @@
<jakarta.validation-api.version>2.0.2</jakarta.validation-api.version>
<jakarta.websocket-api.version>1.1.2</jakarta.websocket-api.version>
<jaxb-runtime.version>2.3.3-b01</jaxb-runtime.version>
<!-- just for test dependency convergence -->
<jaxb-api.version>2.3.1</jaxb-api.version>
<jboss-jaxrs-api_2.1_spec.version>2.0.1.Final</jboss-jaxrs-api_2.1_spec.version>
<jboss-jaxb-api_2.3_spec.version>2.0.0.Final</jboss-jaxb-api_2.3_spec.version>
<asm.version>7.1</asm.version>
@@ -912,8 +914,8 @@
<artifactId>activation</artifactId>
</exclusion>
<exclusion>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<groupId>javax.activation</groupId>
<artifactId>javax.activation-api</artifactId>
</exclusion>
<exclusion>
<!-- https://github.com/quarkusio/quarkus/issues/1991 -->
@@ -926,6 +928,11 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>${jaxb-api.version}</version>
</dependency>
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>json-schema-validator</artifactId>

View File

@@ -256,6 +256,10 @@
<exclude>org.slf4j:slf4j-log4j12</exclude>
<exclude>org.slf4j:slf4j-log4j13</exclude>
</excludes>
<includes>
<!-- this is for REST Assured -->
<include>javax.xml.bind:jaxb-api:*:*:test</include>
</includes>
</bannedDependencies>
</rules>
</configuration>