File tree Expand file tree Collapse file tree 5 files changed +60
-45
lines changed
src/test/java/io/cucumber/compatibility Expand file tree Collapse file tree 5 files changed +60
-45
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,11 @@ ifndef CCK_VERSION
23
23
@echo -e "\033[0;31mCCK_VERSION is not defined. Can't update CCK :-(\033[0m"
24
24
exit 1
25
25
endif
26
- git clone --branch compatibility-kit/v$$CCK_VERSION
[email protected] :cucumber/cucumber.git target/cucumber
27
- rm -rf compatibility/src/test/resources/*
28
- cp -r target/cucumber/compatibility-kit/javascript/features compatibility/src/test/resources
29
- rm -rf target/cucumber
26
+ git clone --branch v$$CCK_VERSION
[email protected] :cucumber/compatibility-kit.git target/compatibility-kit
27
+ cd target/compatibility-kit/devkit && npm install && npm run generate-ndjson
28
+ rm -rf compatibility/src/test/resources/features/*
29
+ cp -r target/compatibility-kit/devkit/samples/* compatibility/src/test/resources/features
30
+ rm -rf target/compatibility-kit
30
31
.PHONY : update-cck
31
32
32
33
update-dependency-versions :
@@ -56,7 +57,7 @@ update-changelog:
56
57
.release-in-docker : .configure-cukebot-in-docker default update-changelog .commit-and-push-changelog
57
58
mvn --batch-mode release:clean release:prepare -DautoVersionSubmodules=true -Darguments=" -DskipTests=true -DskipITs=true -Darchetype.test.skip=true"
58
59
git checkout " v$( NEW_VERSION) "
59
- mvn deploy -P-examples -P-compatibility -Psign-source-javadoc -DskipTests=true -DskipITs=true -Darchetype.test.skip=true
60
+ mvn deploy -P-build-in-ci -Psign-source-javadoc -DskipTests=true -DskipITs=true -Darchetype.test.skip=true
60
61
git checkout $(CURRENT_BRANCH )
61
62
git fetch
62
63
.PHONY : .release-in-docker
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <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
+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
3
4
<parent >
4
5
<artifactId >cucumber-jvm</artifactId >
5
6
<groupId >io.cucumber</groupId >
12
13
13
14
<properties >
14
15
<hamcrest .version>2.2</hamcrest .version>
16
+ <jackson-databind .version>2.13.3</jackson-databind .version>
15
17
<junit-jupiter .version>5.9.0</junit-jupiter .version>
16
18
</properties >
17
19
31
33
<type >pom</type >
32
34
<scope >import</scope >
33
35
</dependency >
36
+ <dependency >
37
+ <groupId >com.fasterxml.jackson</groupId >
38
+ <artifactId >jackson-bom</artifactId >
39
+ <version >${jackson-databind.version} </version >
40
+ <type >pom</type >
41
+ <scope >import</scope >
42
+ </dependency >
34
43
</dependencies >
35
44
</dependencyManagement >
36
45
51
60
<artifactId >junit-jupiter</artifactId >
52
61
<scope >test</scope >
53
62
</dependency >
63
+ <dependency >
64
+ <groupId >com.fasterxml.jackson.core</groupId >
65
+ <artifactId >jackson-databind</artifactId >
66
+ <version >${jackson-databind.version} </version >
67
+ <scope >test</scope >
68
+ </dependency >
54
69
</dependencies >
55
70
56
71
<build >
Original file line number Diff line number Diff line change 1
1
package io .cucumber .compatibility ;
2
2
3
- import io . cucumber . messages . internal . com .fasterxml .jackson .databind .JsonNode ;
4
- import io . cucumber . messages . internal . com .fasterxml .jackson .databind .node .ArrayNode ;
5
- import io . cucumber . messages . internal . com .fasterxml .jackson .databind .node .BooleanNode ;
6
- import io . cucumber . messages . internal . com .fasterxml .jackson .databind .node .NumericNode ;
7
- import io . cucumber . messages . internal . com .fasterxml .jackson .databind .node .ObjectNode ;
8
- import io . cucumber . messages . internal . com .fasterxml .jackson .databind .node .TextNode ;
3
+ import com .fasterxml .jackson .databind .JsonNode ;
4
+ import com .fasterxml .jackson .databind .node .ArrayNode ;
5
+ import com .fasterxml .jackson .databind .node .BooleanNode ;
6
+ import com .fasterxml .jackson .databind .node .NumericNode ;
7
+ import com .fasterxml .jackson .databind .node .ObjectNode ;
8
+ import com .fasterxml .jackson .databind .node .TextNode ;
9
9
import org .hamcrest .CoreMatchers ;
10
10
import org .hamcrest .Description ;
11
11
import org .hamcrest .Matcher ;
Original file line number Diff line number Diff line change 1
1
package io .cucumber .compatibility ;
2
2
3
+ import com .fasterxml .jackson .core .JsonProcessingException ;
4
+ import com .fasterxml .jackson .databind .DeserializationFeature ;
5
+ import com .fasterxml .jackson .databind .JsonNode ;
6
+ import com .fasterxml .jackson .databind .ObjectMapper ;
3
7
import io .cucumber .core .options .RuntimeOptionsBuilder ;
4
8
import io .cucumber .core .plugin .HtmlFormatter ;
5
9
import io .cucumber .core .plugin .JsonFormatter ;
6
10
import io .cucumber .core .plugin .MessageFormatter ;
7
11
import io .cucumber .core .runtime .Runtime ;
8
- import io .cucumber .messages .internal .com .fasterxml .jackson .core .JsonProcessingException ;
9
- import io .cucumber .messages .internal .com .fasterxml .jackson .databind .DeserializationFeature ;
10
- import io .cucumber .messages .internal .com .fasterxml .jackson .databind .JsonNode ;
11
- import io .cucumber .messages .internal .com .fasterxml .jackson .databind .ObjectMapper ;
12
12
import org .hamcrest .Matcher ;
13
13
import org .junit .jupiter .params .ParameterizedTest ;
14
14
import org .junit .jupiter .params .provider .MethodSource ;
Original file line number Diff line number Diff line change 62
62
63
63
<profiles >
64
64
<profile >
65
- <id >examples </id >
65
+ <id >build-local </id >
66
66
<activation >
67
67
<activeByDefault >true</activeByDefault >
68
68
</activation >
69
69
<modules >
70
70
<module >examples</module >
71
- </modules >
72
- </profile >
73
- <profile >
74
- <id >compatibility</id >
75
- <activation >
76
- <activeByDefault >true</activeByDefault >
77
- </activation >
78
- <modules >
79
71
<module >compatibility</module >
80
72
</modules >
81
- </profile >
82
-
83
- <profile >
84
- <id >spotless-apply</id >
85
- <activation >
86
- <property >
87
- <name >!CI</name >
88
- </property >
89
- </activation >
90
73
<build >
91
74
<pluginManagement >
92
75
<plugins >
104
87
</execution >
105
88
</executions >
106
89
</plugin >
107
- <!-- Need the 3.0.0 release for Junit5 + Before/After hooks -->
108
- <plugin >
109
- <groupId >org.apache.maven.plugins</groupId >
110
- <artifactId >maven-surefire-plugin</artifactId >
111
- <version >3.0.0-M7</version >
112
- </plugin >
113
- <plugin >
114
- <groupId >org.apache.maven.plugins</groupId >
115
- <artifactId >maven-failsafe-plugin</artifactId >
116
- <version >3.0.0-M7</version >
117
- </plugin >
90
+
118
91
</plugins >
119
92
</pluginManagement >
120
93
</build >
121
94
</profile >
122
95
96
+ <profile >
97
+ <id >build-in-ci</id >
98
+ <activation >
99
+ <property >
100
+ <name >CI</name >
101
+ <value >true</value >
102
+ </property >
103
+ </activation >
104
+ <modules >
105
+ <module >examples</module >
106
+ <module >compatibility</module >
107
+ </modules >
108
+ </profile >
109
+
123
110
<profile >
124
111
<id >check-semantic-version</id >
125
112
<build >
143
130
144
131
<build >
145
132
<plugins >
133
+ <!-- Need the 3.0.0+ release for Junit5 + Before/After hooks -->
134
+ <plugin >
135
+ <groupId >org.apache.maven.plugins</groupId >
136
+ <artifactId >maven-surefire-plugin</artifactId >
137
+ <version >3.0.0-M7</version >
138
+ </plugin >
139
+ <plugin >
140
+ <groupId >org.apache.maven.plugins</groupId >
141
+ <artifactId >maven-failsafe-plugin</artifactId >
142
+ <version >3.0.0-M7</version >
143
+ </plugin >
144
+
146
145
<plugin >
147
146
<groupId >org.apache.maven.plugins</groupId >
148
147
<artifactId >maven-enforcer-plugin</artifactId >
You can’t perform that action at this time.
0 commit comments