feat(exx-Pipeline): add gradle licencing

This commit is contained in:
Wolfram Gulde 2022-05-10 11:16:18 +02:00 committed by Marcel Feix
parent 5c2bb72630
commit 8df7067f17
No known key found for this signature in database
GPG Key ID: 04D016E104A25F03
4 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,11 @@
include:
- '/templates/java/gradle/gradle-licence.gitlab-ci.yml'
- '/templates/licence/licence.gitlab-ci.yml'
License-Bom:
extends: .gradle-licence
License-Adoc:
extends: .license-asciidoc
variables:
BOM_FILE: build/reports/bom.json

View File

@ -0,0 +1,12 @@
.gradle-licence:
image: $GRADLE_IMAGE
stage: post-process
before_script:
- "cd $BACKEND_DIR"
script:
- "./gradlew --build-cache cyclonedxBom $GRADLE_CLI_OPTS"
artifacts:
expire_in: 2 weeks
reports:
junit:
- "$BACKEND_DIR/build/reports/bom.json"

View File

@ -0,0 +1,15 @@
.license-asciidoc:
image: gitlab.exxcellent.de:4567/gilden/ci/exxcellent-license-tools
stage: post-process
variables:
BOM_FILE: bom.json
LICENSE_FILE: licenses.adoc
before_script:
- "cd $BACKEND_DIR"
script:
- licenseBom2Adoc --bom $BOM_FILE --adoc $LICENSE_ADOC_FILE
artifacts:
when: always
expire_in: 2 weeks
paths:
- $LICENSE_ADOC_FILE