File tree Expand file tree Collapse file tree 9 files changed +29
-9
lines changed
sources/src/main/scala/io/cucumber/scala Expand file tree Collapse file tree 9 files changed +29
-9
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ See also the [CHANGELOG](https://github.com/cucumber/cucumber-jvm/blob/master/CH
13
13
14
14
### Changed
15
15
16
+ - [ Core] Update ` cucumber-core ` dependency to [ 6.4.0] ( https://github.com/cucumber/cucumber-jvm/blob/main/CHANGELOG.md )
17
+
16
18
### Deprecated
17
19
18
20
### Removed
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ The minor version might differ because Cucumber Scala may add Scala-related feat
17
17
18
18
| Cucumber Scala version | Cucumber version | Scala versions |
19
19
| ------------------------| ------------------| ------------------|
20
- | 6.3 .0 | 6.3 .0 | 2.11, 2.12, 2.13 |
20
+ | 6.4 .0 | 6.4 .0 | 2.11, 2.12, 2.13 |
21
21
| 5.7.0 | 5.7.0 | 2.11, 2.12, 2.13 |
22
22
| 4.7.1 | 4.7.1 | 2.11, 2.12, 2.13 |
23
23
Original file line number Diff line number Diff line change 4
4
<parent >
5
5
<groupId >io.cucumber</groupId >
6
6
<artifactId >cucumber-jvm-scala</artifactId >
7
- <version >6.3.1 -SNAPSHOT</version >
7
+ <version >6.4.0 -SNAPSHOT</version >
8
8
</parent >
9
9
10
10
<artifactId >scala-examples</artifactId >
Original file line number Diff line number Diff line change 1
1
<project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
2
2
<modelVersion >4.0.0</modelVersion >
3
3
<artifactId >cucumber-jvm-scala</artifactId >
4
- <version >6.3.1 -SNAPSHOT</version >
4
+ <version >6.4.0 -SNAPSHOT</version >
5
5
<packaging >pom</packaging >
6
6
<name >Cucumber-JVM: Scala</name >
7
7
<description >Cucumber for Scala</description >
20
20
<minimum .maven.version>3.3</minimum .maven.version>
21
21
<outputDirectory >${project.build.directory}</outputDirectory >
22
22
<scala-maven-plugin .version>4.4.0</scala-maven-plugin .version>
23
- <cucumber .version>6.3 .0</cucumber .version>
23
+ <cucumber .version>6.4 .0</cucumber .version>
24
24
<gherkin .version>14.2.0</gherkin .version>
25
25
<groovy .version>2.5.13</groovy .version>
26
26
<jackson-databind .version>2.11.1</jackson-databind .version>
Original file line number Diff line number Diff line change 4
4
<parent >
5
5
<groupId >io.cucumber</groupId >
6
6
<artifactId >cucumber-jvm-scala</artifactId >
7
- <version >6.3.1 -SNAPSHOT</version >
7
+ <version >6.4.0 -SNAPSHOT</version >
8
8
</parent >
9
9
10
10
<artifactId >cucumber-scala-aggregator</artifactId >
Original file line number Diff line number Diff line change 4
4
<parent >
5
5
<groupId >io.cucumber</groupId >
6
6
<artifactId >cucumber-scala-aggregator</artifactId >
7
- <version >6.3.1 -SNAPSHOT</version >
7
+ <version >6.4.0 -SNAPSHOT</version >
8
8
</parent >
9
9
10
10
<artifactId >cucumber-scala_2.11</artifactId >
59
59
</testResource >
60
60
</testResources >
61
61
<plugins >
62
+ <plugin >
63
+ <groupId >org.apache.maven.plugins</groupId >
64
+ <artifactId >maven-compiler-plugin</artifactId >
65
+ <configuration >
66
+ <source >1.8</source >
67
+ <target >1.8</target >
68
+ </configuration >
69
+ </plugin >
62
70
<!-- Extra Sources for Scala 2.11 -->
63
71
<plugin >
64
72
<groupId >org.codehaus.mojo</groupId >
82
90
<artifactId >scala-maven-plugin</artifactId >
83
91
<configuration >
84
92
<args >
93
+ <arg >-target:jvm-1.8</arg >
85
94
<arg >-deprecation</arg >
86
95
<arg >-feature</arg >
87
96
<!-- Allow definition of implicit functions called views -->
Original file line number Diff line number Diff line change 4
4
<parent >
5
5
<groupId >io.cucumber</groupId >
6
6
<artifactId >cucumber-scala-aggregator</artifactId >
7
- <version >6.3.1 -SNAPSHOT</version >
7
+ <version >6.4.0 -SNAPSHOT</version >
8
8
</parent >
9
9
10
10
<artifactId >cucumber-scala_2.12</artifactId >
73
73
<artifactId >scala-maven-plugin</artifactId >
74
74
<configuration >
75
75
<args >
76
+ <arg >-target:jvm-1.8</arg >
76
77
<!-- Emit warning and location for usages of deprecated APIs. -->
77
78
<arg >-deprecation</arg >
78
79
<!-- Emit warning and location for usages of features that should be imported explicitly. -->
Original file line number Diff line number Diff line change 4
4
<parent >
5
5
<groupId >io.cucumber</groupId >
6
6
<artifactId >cucumber-scala-aggregator</artifactId >
7
- <version >6.3.1 -SNAPSHOT</version >
7
+ <version >6.4.0 -SNAPSHOT</version >
8
8
</parent >
9
9
10
10
<artifactId >cucumber-scala_2.13</artifactId >
70
70
<configuration >
71
71
<!-- https://nathankleyn.com/2019/05/13/recommended-scalac-flags-for-2-13/ -->
72
72
<args >
73
+ <arg >-target:jvm-1.8</arg >
73
74
<!-- Emit warning and location for usages of deprecated APIs. -->
74
75
<arg >-deprecation</arg >
75
76
<!-- Explain type errors in more detail. -->
Original file line number Diff line number Diff line change 1
1
package io .cucumber .scala
2
2
3
3
import java .lang .reflect .InvocationTargetException
4
+ import java .util .Optional
4
5
5
- import io .cucumber .core .backend .{CucumberInvocationTargetException , Located }
6
+ import io .cucumber .core .backend .{CucumberInvocationTargetException , Located , SourceReference }
6
7
7
8
import scala .util .{Failure , Try }
8
9
9
10
trait AbstractGlueDefinition extends Located {
10
11
11
12
val location : StackTraceElement
12
13
14
+ lazy val sourceReference : SourceReference = SourceReference .fromStackTraceElement(location)
15
+
13
16
override def getLocation (): String = {
14
17
location.toString
15
18
}
@@ -18,6 +21,10 @@ trait AbstractGlueDefinition extends Located {
18
21
location.getFileName != null && location.getFileName == stackTraceElement.getFileName
19
22
}
20
23
24
+ override def getSourceReference (): Optional [SourceReference ] = {
25
+ Optional .of(sourceReference)
26
+ }
27
+
21
28
/**
22
29
* Executes the block of code and handle failures in the way asked by Cucumber specification: that is throwing a CucumberInvocationTargetException.
23
30
*/
You can’t perform that action at this time.
0 commit comments