Skip to content

Commit 4396d7b

Browse files
authored
[DeltaSpike] Un-deprecate Deltaspike (#2674)
It appeared that DeltaSpike wouldn't work on Java 17. This could be resolved by upgrading to CDI 2.0.
1 parent f1bb48b commit 4396d7b

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
### Changed
1414
- [Core] Use a [message based JUnit XML Formatter](https://github.com/cucumber/cucumber-junit-xml-formatter) ([#2638](https://github.com/cucumber/cucumber-jvm/pull/2638) M.P. Korstanje)
1515
- [Core] Throw an exception when tag expressions are incorrectly escaped ([tag-expressions/#17](https://github.com/cucumber/tag-expressions/pull/17) Aslak Hellesøy)
16+
- [DeltaSpike] Un-Deprecated deltaspike - can be made to work on Java 17.
1617

1718
### Fixed
1819
- [Core] Improve test step creation performance ([#2666](https://github.com/cucumber/cucumber-jvm/issues/2666), Julien Kronegg)
1920

21+
2022
## [7.10.1] - 2022-12-16
2123
### Fixed
2224
- [Spring] Inject CucumberContextConfiguration constructor dependencies ([#2664](https://github.com/cucumber/cucumber-jvm/pull/2664) M.P. Korstanje)

cucumber-deltaspike/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010

1111
<artifactId>cucumber-deltaspike</artifactId>
1212
<packaging>jar</packaging>
13-
<name>Cucumber-JVM: DeltaSpike - Deprecated</name>
13+
<name>Cucumber-JVM: DeltaSpike</name>
1414

1515
<properties>
1616
<apiguardian-api.version>1.1.2</apiguardian-api.version>
17-
<cdi-api.version>1.2</cdi-api.version>
17+
<cdi-api.version>2.0.SP1</cdi-api.version>
1818
<deltaspike.version>1.9.6</deltaspike.version>
1919
<junit-jupiter.version>5.9.1</junit-jupiter.version>
2020
<project.Automatic-Module-Name>io.cucumber.deltaspike</project.Automatic-Module-Name>
@@ -85,7 +85,7 @@
8585
<dependency>
8686
<groupId>org.jboss.weld.se</groupId>
8787
<artifactId>weld-se-core</artifactId>
88-
<version>1.1.34.Final</version>
88+
<version>3.1.9.Final</version>
8989
<scope>test</scope>
9090
</dependency>
9191
</dependencies>

cucumber-deltaspike/src/test/java/io/cucumber/deltaspike/Belly.java

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
package io.cucumber.deltaspike;
22

3+
import javax.inject.Singleton;
4+
5+
@Singleton
36
public class Belly {
47

58
private int cukes;
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xmlns="http://java.sun.com/xml/ns/javaee"
3-
xsi:schemaLocation="
4-
http://java.sun.com/xml/ns/javaee
5-
http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
6-
1+
<beans xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/beans_2_0.xsd"
3+
bean-discovery-mode="all" version="2.0">
74
</beans>

0 commit comments

Comments
 (0)