You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 21, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: content/docs/installation/java.md
+3-42
Original file line number
Diff line number
Diff line change
@@ -22,19 +22,7 @@ Make sure the Cucumber version is the same for all Cucumber dependencies.
22
22
23
23
# Maven
24
24
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`:
38
26
39
27
```xml
40
28
<dependency>
@@ -49,22 +37,7 @@ You can now run Cucumber [from the command line](/docs/cucumber/api/#from-the-co
49
37
50
38
# Gradle
51
39
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`:
68
41
69
42
```
70
43
dependencies {
@@ -77,19 +50,7 @@ repositories {
77
50
}
78
51
```
79
52
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`:
0 commit comments