From dda89ae91610c4a42545f96cb69c97a9972a6a3e Mon Sep 17 00:00:00 2001 From: Jean Bisutti Date: Fri, 27 Mar 2026 14:34:30 +0100 Subject: [PATCH] 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. --- .github/workflows/CI.yml | 8 ++++++-- .mvn/extensions.xml | 8 ++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 .mvn/extensions.xml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 1ed4ffc..0e5f2f8 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -25,7 +25,11 @@ jobs: cache: 'maven' - name: Execute tests run: mvn verify - - name: check license header is present in all files - run: mvn license:check + - name: Upload Maven Timeline + if: always() + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + with: + name: maven-timeline-java-${{ matrix.java }} + path: target/timeline/ - name: Upload coverage to Codecov uses: codecov/codecov-action@75cd11691c0faa626561e295848008c8a7dddffe # v5 \ No newline at end of file diff --git a/.mvn/extensions.xml b/.mvn/extensions.xml new file mode 100644 index 0000000..129440f --- /dev/null +++ b/.mvn/extensions.xml @@ -0,0 +1,8 @@ + + + + io.takari.maven + maven-timeline + 2.0.4 + +