Skip to content

Commit 55c80a7

Browse files
committed
Update README and polish artifacts
1 parent 07f4d02 commit 55c80a7

File tree

6 files changed

+47
-43
lines changed

6 files changed

+47
-43
lines changed

.github/workflows/release-github.yaml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,6 @@ jobs:
1515
contents: write
1616
steps:
1717
- uses: actions/checkout@v6
18-
- uses: actions/setup-java@v5
19-
with:
20-
distribution: 'temurin'
21-
java-version: '21'
22-
cache: 'maven'
23-
- run: |
24-
mvn verify
25-
# Test if the jar file works
26-
./target/app/bin/cucumber-messages-cli --help
27-
working-directory: java
2818
- uses: cucumber/[email protected]
2919
with:
3020
github-token: ${{ secrets.GITHUB_TOKEN }}
31-
- name: upload Unix artifact
32-
uses: actions/upload-release-asset@v1
33-
env:
34-
GITHUB_TOKEN: ${{ github.token }}
35-
with:
36-
upload_url: ${{ steps.create_release.outputs.upload_url }}
37-
asset_path: java/target/distributions/app/cucumber-messages-cli.tar.gz
38-
asset_name: cucumber-messages-cli.tar.gz
39-
asset_content_type: application/gzip
40-
- name: upload Windows artifact
41-
uses: actions/upload-release-asset@v1
42-
env:
43-
GITHUB_TOKEN: ${{ github.token }}
44-
with:
45-
upload_url: ${{ steps.create_release.outputs.upload_url }}
46-
asset_path: java/target/distributions/app/cucumber-messages-cli.zip
47-
asset_name: cucumber-messages-cli.zip
48-
asset_content_type: application/zip

.github/workflows/test-java.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ jobs:
4141
- run: |
4242
mvn verify
4343
# Test if the jar file works
44-
./target/app/bin/cucumber-messages-cli --help
44+
./target/app/cucumber-messages-cli/bin/cucumber-messages --help
4545
working-directory: java
4646

CHANGELOG.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
9-
10-
## [0.0.1] - 2025-12-11
119
### Changed
1210
- Initial release
1311

14-
[Unreleased]: https://github.com/cucumber/messages-cli/compare/v0.0.1...HEAD
15-
[0.0.1]: https://github.com/cucumber/messages-cli/compare/1c14a4838e49c7c0b02c09d884b9c783790070f0...v0.0.1
12+
[Unreleased]: https://github.com/cucumber/messages-cli/compare/1c14a4838e49c7c0b02c09d884b9c783790070f0...HEAD

README.md

Lines changed: 41 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,44 @@
11
# messages-cli
2+
23
Commandline interface to work with Cucumber Messages
34

4-
## TODO:
5-
- Build as standalone artifact
6-
- Publish as a CLI tool
7-
- Write README.
8-
- Tidelift
9-
- Support JSON Formatter
5+
Given a messages file produce a test report in one of these format:
6+
7+
* JUnit XML
8+
* TestNG XML
9+
* Cucumber HTML
10+
* Cucumber JSON
11+
12+
## Building
13+
14+
Required
15+
* Apache Maven 3.9.9+
16+
* Java JRE 21+
17+
18+
First, checkout the latest release `X.Y.Z`:
19+
20+
```
21+
git clone https://github.com/cucumber/messages-cli.git
22+
git checkout vX.Y.Z
23+
```
24+
25+
Then build the project
26+
27+
```shell
28+
cd java
29+
mvn clean package
30+
```
31+
32+
Then install the artifacts, for example on Unix:
33+
34+
```shell
35+
cp -r target/app/cucumber-messages-cli ~/opt
36+
ln -s ~/opt/cucumber-messages-cli/bin/cucumber-messages ~/.local/bin/cucumber-messages
37+
```
38+
39+
On Windows: copy the `target/app/cucumber-messages-cli` somewhere and put the
40+
`cucumber-messages.bat` in your `PATH`.
41+
42+
## Usage
43+
44+
See: `cucumber-messages --help`

java/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
<app.distribution.directory>${project.build.directory}/distributions/app</app.distribution.directory>
3030
<app.main.class>io.cucumber.messages.cli.CucumberMessagesCli</app.main.class>
31-
<app.main.id>cucumber-messages-cli</app.main.id>
31+
3232
</properties>
3333

3434
<scm>
@@ -141,13 +141,13 @@
141141
<artifactId>appassembler-maven-plugin</artifactId>
142142
<version>2.1.0</version>
143143
<configuration>
144-
<assembleDirectory>${project.build.directory}/app</assembleDirectory>
144+
<assembleDirectory>${project.build.directory}/app/${project.artifactId}</assembleDirectory>
145145
<repositoryLayout>flat</repositoryLayout>
146146
<repositoryName>lib</repositoryName>
147147
<programs>
148148
<program>
149149
<mainClass>${app.main.class}</mainClass>
150-
<id>${app.main.id}</id>
150+
<id>cucumber-messages</id>
151151
</program>
152152
</programs>
153153
</configuration>

java/src/main/assembly/assembly.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<outputDirectory></outputDirectory>
1717
</fileSet>
1818
<fileSet>
19-
<directory>${project.build.directory}/app</directory>
19+
<directory>${project.build.directory}/app/{$project.artifactId}</directory>
2020
<outputDirectory></outputDirectory>
2121
</fileSet>
2222
</fileSets>

0 commit comments

Comments
 (0)