Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Commit

Permalink
Remove Cucumber Java8 as recommendation
Browse files Browse the repository at this point in the history
Cucumber Java8 is considered for deprecation[1]. Recommending it in the docs
suggests otherwise.

1: cucumber/cucumber-jvm#2279

Fixes: #767
  • Loading branch information
mpkorstanje committed Aug 11, 2022
1 parent 2375bfb commit b07877a
Showing 1 changed file with 3 additions and 42 deletions.
45 changes: 3 additions & 42 deletions content/docs/installation/java.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java8</artifactId>
<version>{{% version "cucumberjvm" %}}</version>
<scope>test</scope>
</dependency>
```

Otherwise, to write them using annotated methods, add the following dependency to your `pom.xml`:
Add the following dependency to your `pom.xml`:

```xml
<dependency>
Expand All @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit b07877a

Please sign in to comment.