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 {