From b07877a5b6f88f056dedb05f9ee27ae0ef74c23e Mon Sep 17 00:00:00 2001 From: "M.P. Korstanje" Date: Thu, 11 Aug 2022 15:57:47 +0200 Subject: [PATCH] Remove Cucumber Java8 as recommendation Cucumber Java8 is considered for deprecation[1]. Recommending it in the docs suggests otherwise. 1: https://github.com/cucumber/cucumber-jvm/issues/2279 Fixes: #767 --- content/docs/installation/java.md | 45 +++---------------------------- 1 file changed, 3 insertions(+), 42 deletions(-) diff --git a/content/docs/installation/java.md b/content/docs/installation/java.md index 605404fe..6630fd89 100644 --- a/content/docs/installation/java.md +++ b/content/docs/installation/java.md @@ -22,19 +22,7 @@ Make sure the Cucumber version is the same for all Cucumber dependencies. # Maven -If you are going to use the lambda expressions API (Java 8) to write the step -definitions, add the following dependency to your `pom.xml`: - -```xml - - io.cucumber - cucumber-java8 - {{% version "cucumberjvm" %}} - test - -``` - -Otherwise, to write them using annotated methods, add the following dependency to your `pom.xml`: +Add the following dependency to your `pom.xml`: ```xml @@ -49,22 +37,7 @@ You can now run Cucumber [from the command line](/docs/cucumber/api/#from-the-co # Gradle -If you are using Gradle **4.10.3 or older**, and you are going to use the lambda expressions API (Java 8) to write the step -definitions, add the following dependencies to `build.gradle`: - - -``` -dependencies { - testCompile 'io.cucumber:cucumber-java8:{{% version "cucumberjvm" %}}' - testCompile 'io.cucumber:cucumber-junit:{{% version "cucumberjvm" %}}' -} - -repositories { - mavenCentral() -} -``` - -If you would prefer to write step definitions using annotated methods and you are using Gradle **4.10.3 or older**, add the following dependencies to `build.gradle`: +If you are using Gradle **4.10.3 or older** add the following dependencies to `build.gradle`: ``` dependencies { @@ -77,19 +50,7 @@ repositories { } ``` -Similarly, if you want to use Gradle **5.0 or more recent**, and would like to use the lambda API, add the following block to `build.gradle`. -``` -dependencies { - testImplementation 'io.cucumber:cucumber-java8:{{% version "cucumberjvm" %}}' - testImplementation 'io.cucumber:cucumber-junit:{{% version "cucumberjvm" %}}' -} - -repositories { - mavenCentral() -} -``` - -Otherwise, to write them using annotated methods, add the following dependencies to `build.gradle`: +Similarly, if you want to use Gradle **5.0 or more recent** add the following dependencies to `build.gradle`: ``` dependencies {