Skip to content

Commit 111a070

Browse files
committed
Make calculator-java-testng standalone
1 parent 38eb7d7 commit 111a070

File tree

16 files changed

+23
-13
lines changed

16 files changed

+23
-13
lines changed

.github/workflows/test-java.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- calculator-java-cli
2121
- calculator-java-junit-4
2222
- calculator-java-junit-jupiter
23+
- calculator-java-testng
2324

2425
name: 'Build Java ${{ matrix.example }}'
2526
runs-on: ubuntu-latest
File renamed without changes.

examples/calculator-java-testng/pom.xml renamed to calculator-java-testng/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-testng</artifactId>
6+
<version>0.0.1</version>
117
<packaging>jar</packaging>
12-
<name>Examples: Calculator - Java - Annotations - TestNG</name>
8+
9+
<name>Calculator - Java - Annotations - TestNG</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>
@@ -39,4 +37,19 @@
3937
<scope>test</scope>
4038
</dependency>
4139
</dependencies>
40+
41+
<build>
42+
<plugins>
43+
<plugin>
44+
<groupId>org.apache.maven.plugins</groupId>
45+
<artifactId>maven-compiler-plugin</artifactId>
46+
<version>3.14.1</version>
47+
</plugin>
48+
<plugin>
49+
<groupId>org.apache.maven.plugins</groupId>
50+
<artifactId>maven-surefire-plugin</artifactId>
51+
<version>3.5.4</version>
52+
</plugin>
53+
</plugins>
54+
</build>
4255
</project>

0 commit comments

Comments
 (0)