diff --git a/CHANGELOG.md b/CHANGELOG.md index 81440578ea..8eff22710b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/java8/pom.xml b/java8/pom.xml index e1da4d1997..9b1dba2f21 100644 --- a/java8/pom.xml +++ b/java8/pom.xml @@ -9,7 +9,7 @@ cucumber-java8 jar - Cucumber-JVM: Java 8 + Cucumber-JVM: Java 8 - Deprecated io.cucumber.java8 diff --git a/java8/src/main/java/io/cucumber/java8/Java8BackendProviderService.java b/java8/src/main/java/io/cucumber/java8/Java8BackendProviderService.java index 874f7ccc81..e2965b66b6 100644 --- a/java8/src/main/java/io/cucumber/java8/Java8BackendProviderService.java +++ b/java8/src/main/java/io/cucumber/java8/Java8BackendProviderService.java @@ -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 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); }