Skip to content

Commit 13d4fbc

Browse files
committed
[Cdi2] Add profile to switch tests between OpenWebBeans and Weld
1 parent 23cc96c commit 13d4fbc

File tree

1 file changed

+43
-13
lines changed

1 file changed

+43
-13
lines changed

cdi2/pom.xml

+43-13
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
<modelVersion>4.0.0</modelVersion>
33
<properties>
44
<project.Automatic-Module-Name>io.cucumber.cdi2</project.Automatic-Module-Name>
5-
<openwebbeans.version>2.0.21</openwebbeans.version>
65
<cdi-api.version>2.0.SP1</cdi-api.version>
76
<javax.annotation-api.version>1.3.2</javax.annotation-api.version>
7+
<openwebbeans.version>2.0.21</openwebbeans.version>
8+
<weld-se-core.version>3.1.1.Final</weld-se-core.version>
89
</properties>
910

1011
<parent>
@@ -40,18 +41,6 @@
4041
<scope>provided</scope>
4142
</dependency>
4243

43-
<dependency>
44-
<groupId>org.apache.openwebbeans</groupId>
45-
<artifactId>openwebbeans-impl</artifactId>
46-
<version>${openwebbeans.version}</version>
47-
<scope>test</scope>
48-
</dependency>
49-
<dependency>
50-
<groupId>org.apache.openwebbeans</groupId>
51-
<artifactId>openwebbeans-se</artifactId>
52-
<version>${openwebbeans.version}</version>
53-
<scope>test</scope>
54-
</dependency>
5544
<dependency>
5645
<groupId>io.cucumber</groupId>
5746
<artifactId>cucumber-java</artifactId>
@@ -73,4 +62,45 @@
7362
<scope>test</scope>
7463
</dependency>
7564
</dependencies>
65+
66+
<profiles>
67+
<profile>
68+
<id>cdi2-openwebbeans</id>
69+
<activation>
70+
<activeByDefault>true</activeByDefault>
71+
</activation>
72+
<dependencies>
73+
<dependency>
74+
<groupId>org.apache.openwebbeans</groupId>
75+
<artifactId>openwebbeans-se</artifactId>
76+
<version>${openwebbeans.version}</version>
77+
<scope>test</scope>
78+
</dependency>
79+
<dependency>
80+
<groupId>org.apache.openwebbeans</groupId>
81+
<artifactId>openwebbeans-impl</artifactId>
82+
<version>${openwebbeans.version}</version>
83+
<scope>test</scope>
84+
</dependency>
85+
</dependencies>
86+
</profile>
87+
<profile>
88+
<id>cdi2-weld</id>
89+
<dependencies>
90+
<dependency>
91+
<groupId>org.jboss.weld.se</groupId>
92+
<artifactId>weld-se-core</artifactId>
93+
<version>${weld-se-core.version}</version>
94+
<scope>test</scope>
95+
</dependency>
96+
<dependency>
97+
<groupId>org.jboss.weld</groupId>
98+
<artifactId>weld-core-impl</artifactId>
99+
<version>${weld-se-core.version}</version>
100+
<scope>test</scope>
101+
</dependency>
102+
</dependencies>
103+
</profile>
104+
</profiles>
105+
76106
</project>

0 commit comments

Comments
 (0)