Skip to content

Commit 2e6b10e

Browse files
committed
Make calculator-kotlin-junit-jupiter standalone
1 parent 111a070 commit 2e6b10e

File tree

14 files changed

+19
-20
lines changed

14 files changed

+19
-20
lines changed

.github/workflows/test-java.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ jobs:
2121
- calculator-java-junit-4
2222
- calculator-java-junit-jupiter
2323
- calculator-java-testng
24+
- calculator-kotlin-junit-jupiter
2425

25-
name: 'Build Java ${{ matrix.example }}'
26+
name: 'Test ${{ matrix.example }}'
2627
runs-on: ubuntu-latest
2728

2829
steps:

calculator-java-cli/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
<plugin>
6868
<groupId>org.apache.maven.plugins</groupId>
6969
<artifactId>maven-antrun-plugin</artifactId>
70+
<version>3.2.0</version>
7071
<executions>
7172
<execution>
7273
<id>cli-test</id>
@@ -76,7 +77,7 @@
7677
</goals>
7778
<configuration>
7879
<target unless="maven.test.skip">
79-
<echo message="Running Cucumber through the CLI" />
80+
<echo message="Running Cucumber through the CLI" level="info" />
8081
<java classname="io.cucumber.core.cli.Main" fork="true" failonerror="true" newenvironment="true" maxmemory="512m" classpathref="maven.test.classpath">
8182
<arg value="--plugin" />
8283
<arg value="pretty" />

calculator-java-junit-jupiter/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105
<plugin>
106106
<groupId>org.apache.maven.plugins</groupId>
107107
<artifactId>maven-antrun-plugin</artifactId>
108+
<version>3.2.0</version>
108109
<executions>
109110
<execution>
110111
<!-- Work around. Surefire does not use JUnits Test Engine discovery functionality.

calculator-java8-cli/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
<plugin>
7070
<groupId>org.apache.maven.plugins</groupId>
7171
<artifactId>maven-antrun-plugin</artifactId>
72+
<version>3.2.0</version>
7273
<executions>
7374
<execution>
7475
<id>cli-test</id>
@@ -78,7 +79,7 @@
7879
</goals>
7980
<configuration>
8081
<target unless="maven.test.skip">
81-
<echo message="Running Cucumber through the CLI" />
82+
<echo message="Running Cucumber through the CLI" level="info"/>
8283
<java classname="io.cucumber.core.cli.Main" fork="true" failonerror="true" newenvironment="true" maxmemory="512m" classpathref="maven.test.classpath">
8384
<arg value="--plugin" />
8485
<arg value="pretty" />

examples/calculator-kotlin-junit5/pom.xml renamed to calculator-kotlin-junit-jupiter/pom.xml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,25 @@
44

55
<modelVersion>4.0.0</modelVersion>
66

7-
<parent>
8-
<groupId>io.cucumber</groupId>
9-
<artifactId>examples</artifactId>
10-
<version>7.33.0-SNAPSHOT</version>
11-
</parent>
12-
13-
<artifactId>calculator-kotlin-junit5</artifactId>
7+
<groupId>io.cucumber.examples</groupId>
8+
<artifactId>calculator-kotlin-junit-jupiter</artifactId>
9+
<version>0.0.1</version>
1410
<packaging>jar</packaging>
15-
<name>Examples: Calculator - Kotlin - Annotations - Junit 5</name>
11+
12+
<name>Calculator - Kotlin - Annotations - Junit Jupiter</name>
1613

1714
<properties>
1815
<kotlin.code.style>official</kotlin.code.style>
19-
<project.Automatic-Module-Name>io.cucumber.examples.calculator</project.Automatic-Module-Name>
16+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
17+
<maven.compiler.release>17</maven.compiler.release>
2018
</properties>
2119

2220
<dependencyManagement>
2321
<dependencies>
2422
<dependency>
2523
<groupId>io.cucumber</groupId>
2624
<artifactId>cucumber-bom</artifactId>
27-
<version>${project.version}</version>
25+
<version>7.32.0</version>
2826
<type>pom</type>
2927
<scope>import</scope>
3028
</dependency>
@@ -104,7 +102,7 @@
104102
</plugin>
105103
<plugin>
106104
<artifactId>maven-failsafe-plugin</artifactId>
107-
<version>3.5.3</version>
105+
<version>3.5.4</version>
108106
</plugin>
109107
<plugin>
110108
<groupId>org.apache.maven.plugins</groupId>
@@ -123,6 +121,7 @@
123121
<plugin>
124122
<groupId>org.apache.maven.plugins</groupId>
125123
<artifactId>maven-antrun-plugin</artifactId>
124+
<version>3.2.0</version>
126125
<executions>
127126
<execution>
128127
<!-- Work around. Surefire does not use JUnits Test Engine discovery functionality.
@@ -136,7 +135,7 @@
136135
</goals>
137136
<configuration>
138137
<target unless="maven.test.skip">
139-
<echo message="Running JUnit Platform CLI"/>
138+
<echo message="Running JUnit Platform CLI" level="info" />
140139
<java classname="org.junit.platform.console.ConsoleLauncher" fork="true"
141140
failonerror="true" newenvironment="true" maxmemory="512m"
142141
classpathref="maven.test.classpath">

0 commit comments

Comments
 (0)