diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2022-10-12 23:33:14 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2022-10-13 00:01:38 +0200 |
commit | b398bb91ab28b799ea39dc2d1b5bd0b849392443 (patch) | |
tree | 25bd648a3a2ab540acf6490ebd5f7bc613419ec8 /pom.xml | |
parent | 490c586dee4a4158eb2c1b80ced12c7c164e55c9 (diff) | |
download | jgit-b398bb91ab28b799ea39dc2d1b5bd0b849392443.tar.gz jgit-b398bb91ab28b799ea39dc2d1b5bd0b849392443.zip |
Fail build if there are license issues with dependencies
Configure the dash license-tool-plugin to fail the build if there are
license issues with build dependencies. This plugin will generate a list
of all build dependencies and their license to target/dash/summary.
Delete the checked-in dependency list DEPENDENCIES since the build now
always generates it to target/dash/summary.
See https://github.com/eclipse/dash-licenses#example-maven-plugin
Change-Id: I0c2bf8eb166d85b840d42afc61750b4a083b7659
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -185,6 +185,10 @@ <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin> <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis> <sonar.jacoco.reportPath>${project.build.directory}/jacoco.exec</sonar.jacoco.reportPath> + + <!-- license check --> + <dash.fail>true</dash.fail> + <dash.projectId>technology.jgit</dash.projectId> </properties> <repositories> @@ -556,6 +560,14 @@ <plugin> <groupId>org.eclipse.dash</groupId> <artifactId>license-tool-plugin</artifactId> + <executions> + <execution> + <id>license-check</id> + <goals> + <goal>license-check</goal> + </goals> + </execution> + </executions> </plugin> </plugins> </build> |