aboutsummaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2022-10-12 23:33:14 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2022-10-13 00:01:38 +0200
commitb398bb91ab28b799ea39dc2d1b5bd0b849392443 (patch)
tree25bd648a3a2ab540acf6490ebd5f7bc613419ec8 /pom.xml
parent490c586dee4a4158eb2c1b80ced12c7c164e55c9 (diff)
downloadjgit-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.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 07850c23df..44745058a7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -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>