DATACMNS-1159 - Downgrade to CDI 1.0.

We now build against CDI 1.0 again while using CDI 2.0 for testing.
This commit is contained in:
Mark Paluch
2017-09-21 13:34:39 +02:00
parent d9860f2d20
commit 93c65c02fe

17
pom.xml
View File

@@ -156,10 +156,25 @@
</dependency>
<!-- CDI -->
<!-- Dependency order required to build against CDI 1.0 and test with CDI 2.0 -->
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-jcdi_2.0_spec</artifactId>
<version>1.0.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.interceptor</groupId>
<artifactId>javax.interceptor-api</artifactId>
<version>1.2.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<version>2.0</version>
<version>${cdi}</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>