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

Commit b07877a

Browse files
committed
Remove Cucumber Java8 as recommendation
Cucumber Java8 is considered for deprecation[1]. Recommending it in the docs suggests otherwise. 1: cucumber/cucumber-jvm#2279 Fixes: #767
1 parent 2375bfb commit b07877a

File tree

1 file changed

+3
-42
lines changed

1 file changed

+3
-42
lines changed

content/docs/installation/java.md

+3-42
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,7 @@ Make sure the Cucumber version is the same for all Cucumber dependencies.
2222

2323
# Maven
2424

25-
If you are going to use the lambda expressions API (Java 8) to write the step
26-
definitions, add the following dependency to your `pom.xml`:
27-
28-
```xml
29-
<dependency>
30-
<groupId>io.cucumber</groupId>
31-
<artifactId>cucumber-java8</artifactId>
32-
<version>{{% version "cucumberjvm" %}}</version>
33-
<scope>test</scope>
34-
</dependency>
35-
```
36-
37-
Otherwise, to write them using annotated methods, add the following dependency to your `pom.xml`:
25+
Add the following dependency to your `pom.xml`:
3826

3927
```xml
4028
<dependency>
@@ -49,22 +37,7 @@ You can now run Cucumber [from the command line](/docs/cucumber/api/#from-the-co
4937

5038
# Gradle
5139

52-
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
53-
definitions, add the following dependencies to `build.gradle`:
54-
55-
56-
```
57-
dependencies {
58-
testCompile 'io.cucumber:cucumber-java8:{{% version "cucumberjvm" %}}'
59-
testCompile 'io.cucumber:cucumber-junit:{{% version "cucumberjvm" %}}'
60-
}
61-
62-
repositories {
63-
mavenCentral()
64-
}
65-
```
66-
67-
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`:
40+
If you are using Gradle **4.10.3 or older** add the following dependencies to `build.gradle`:
6841

6942
```
7043
dependencies {
@@ -77,19 +50,7 @@ repositories {
7750
}
7851
```
7952

80-
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`.
81-
```
82-
dependencies {
83-
testImplementation 'io.cucumber:cucumber-java8:{{% version "cucumberjvm" %}}'
84-
testImplementation 'io.cucumber:cucumber-junit:{{% version "cucumberjvm" %}}'
85-
}
86-
87-
repositories {
88-
mavenCentral()
89-
}
90-
```
91-
92-
Otherwise, to write them using annotated methods, add the following dependencies to `build.gradle`:
53+
Similarly, if you want to use Gradle **5.0 or more recent** add the following dependencies to `build.gradle`:
9354

9455
```
9556
dependencies {

0 commit comments

Comments
 (0)