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

Remove Cucumber Java8 as recommendation #783

Merged
merged 1 commit into from
Aug 11, 2022
Merged
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
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