Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- The `progress` formatter is no longer enabled by default on CLI. Use `--plugin progress` to enable.

### Deprecated
* [Java8] Deprecated `cucumber-java8` ([#2174](https://github.com/cucumber/cucumber-jvm/issues/2174) M.P. Korstanje)
- For details please see:
* https://github.com/cucumber/cucumber-jvm/issues/2174
* https://github.com/cucumber/cucumber-jvm/issues/1817
* https://github.com/jhalterman/typetools/issues/52

### Removed
* [Core] Removed `--strict` and `--no-strict` options ([#1788](https://github.com/cucumber/cucumber-jvm/issues/1788) M.P. Korstanje)
Expand Down
2 changes: 1 addition & 1 deletion java8/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<artifactId>cucumber-java8</artifactId>
<packaging>jar</packaging>
<name>Cucumber-JVM: Java 8</name>
<name>Cucumber-JVM: Java 8 - Deprecated</name>

<properties>
<project.Automatic-Module-Name>io.cucumber.java8</project.Automatic-Module-Name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,23 @@
import io.cucumber.core.backend.BackendProviderService;
import io.cucumber.core.backend.Container;
import io.cucumber.core.backend.Lookup;
import io.cucumber.core.logging.Logger;
import io.cucumber.core.logging.LoggerFactory;

import java.util.function.Supplier;

public final class Java8BackendProviderService implements BackendProviderService {

private static final Logger log = LoggerFactory.getLogger(Java8BackendProviderService.class);

@Override
public Backend create(Lookup lookup, Container container, Supplier<ClassLoader> classLoaderProvider) {
log.warn(() -> "" +
"cucumber-java8 is deprecated. For details please see:\n" +
" * https://github.com/cucumber/cucumber-jvm/issues/2174" +
" * https://github.com/cucumber/cucumber-jvm/issues/1817" +
" * https://github.com/jhalterman/typetools/issues/52");

return new Java8Backend(lookup, container, classLoaderProvider);
}

Expand Down