Skip to content

Commit 433b437

Browse files
committed
Make calculator-java-junit4 standalone
1 parent bef8c46 commit 433b437

File tree

16 files changed

+44
-13
lines changed

16 files changed

+44
-13
lines changed

.github/workflows/test-java.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
example:
1919
- calculator-java8-cli
2020
- calculator-java-cli
21+
- calculator-java-junit4
2122

2223
name: 'Build Java ${{ matrix.example }}'
2324
runs-on: ubuntu-latest

calculator-java-cli/pom.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
<version>0.0.1</version>
77
<packaging>jar</packaging>
88

9-
<name>Examples: Calculator - Java - Annotations - CLI</name>
9+
<name>Calculator - Java - Annotations - CLI</name>
10+
11+
<properties>
12+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
13+
<maven.compiler.release>17</maven.compiler.release>
14+
</properties>
1015

1116
<dependencyManagement>
1217
<dependencies>
@@ -54,6 +59,11 @@
5459

5560
<build>
5661
<plugins>
62+
<plugin>
63+
<groupId>org.apache.maven.plugins</groupId>
64+
<artifactId>maven-compiler-plugin</artifactId>
65+
<version>3.14.1</version>
66+
</plugin>
5767
<plugin>
5868
<groupId>org.apache.maven.plugins</groupId>
5969
<artifactId>maven-antrun-plugin</artifactId>

examples/calculator-java-junit4/pom.xml renamed to calculator-java-junit4/pom.xml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
11
<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">
22
<modelVersion>4.0.0</modelVersion>
33

4-
<parent>
5-
<groupId>io.cucumber</groupId>
6-
<artifactId>examples</artifactId>
7-
<version>7.33.0-SNAPSHOT</version>
8-
</parent>
9-
4+
<groupId>io.cucumber.examples</groupId>
105
<artifactId>calculator-java-junit4</artifactId>
6+
<version>0.0.1</version>
117
<packaging>jar</packaging>
12-
<name>Examples: Calculator - Java - Annotations - Junit4</name>
8+
9+
<name>Calculator - Java - Annotations - Junit4</name>
1310

1411
<properties>
15-
<project.Automatic-Module-Name>io.cucumber.examples.calculator</project.Automatic-Module-Name>
12+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
13+
<maven.compiler.release>17</maven.compiler.release>
1614
</properties>
1715

1816
<dependencyManagement>
1917
<dependencies>
2018
<dependency>
2119
<groupId>io.cucumber</groupId>
2220
<artifactId>cucumber-bom</artifactId>
23-
<version>${project.version}</version>
21+
<version>7.32.0</version>
2422
<type>pom</type>
2523
<scope>import</scope>
2624
</dependency>
@@ -51,4 +49,19 @@
5149
<scope>test</scope>
5250
</dependency>
5351
</dependencies>
52+
53+
<build>
54+
<plugins>
55+
<plugin>
56+
<groupId>org.apache.maven.plugins</groupId>
57+
<artifactId>maven-compiler-plugin</artifactId>
58+
<version>3.14.1</version>
59+
</plugin>
60+
<plugin>
61+
<groupId>org.apache.maven.plugins</groupId>
62+
<artifactId>maven-surefire-plugin</artifactId>
63+
<version>3.5.4</version>
64+
</plugin>
65+
</plugins>
66+
</build>
5467
</project>

0 commit comments

Comments
 (0)