Skip to content

Commit dda89ae

Browse files
committed
Add Maven Timeline plugin and upload artifact in CI
The license-maven-plugin is already bound to process-sources phase in pom.xml, so mvn verify already runs it. The separate mvn license:check step was overwriting target/timeline/ with only its own data.
1 parent 8b47c14 commit dda89ae

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/CI.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ jobs:
2525
cache: 'maven'
2626
- name: Execute tests
2727
run: mvn verify
28-
- name: check license header is present in all files
29-
run: mvn license:check
28+
- name: Upload Maven Timeline
29+
if: always()
30+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
31+
with:
32+
name: maven-timeline-java-${{ matrix.java }}
33+
path: target/timeline/
3034
- name: Upload coverage to Codecov
3135
uses: codecov/codecov-action@75cd11691c0faa626561e295848008c8a7dddffe # v5

.mvn/extensions.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<extensions>
3+
<extension>
4+
<groupId>io.takari.maven</groupId>
5+
<artifactId>maven-timeline</artifactId>
6+
<version>2.0.4</version>
7+
</extension>
8+
</extensions>

0 commit comments

Comments
 (0)