Skip to content

Commit 7fc1694

Browse files
committed
Run licensecheck plugin verification.
1 parent 9d75f72 commit 7fc1694

File tree

3 files changed

+48
-1
lines changed

3 files changed

+48
-1
lines changed

.github/workflows/licensecheck.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow will build a Java project with Maven
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+
name: License check
5+
6+
on:
7+
push:
8+
branches:
9+
- 'master'
10+
- 'tycho-*'
11+
pull_request:
12+
branches:
13+
- 'master'
14+
- 'tycho-*'
15+
16+
jobs:
17+
build:
18+
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Set up JDK 11
24+
uses: actions/setup-java@v2
25+
with:
26+
java-version: '11'
27+
distribution: 'adopt'
28+
- name: Cache local Maven repository
29+
uses: actions/cache@v2
30+
with:
31+
path: ~/.m2/repository
32+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
33+
restore-keys: |
34+
${{ runner.os }}-maven-
35+
- name: License check
36+
run: |
37+
mvn -U -V -e org.eclipse.dash:license-tool-plugin:license-check --file pom.xml

Jenkinsfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pipeline {
1313
stages {
1414
stage('Build') {
1515
steps {
16-
sh 'mvn -U -V -e clean install -Pits -Dmaven.repo.local=$WORKSPACE/.m2/repository'
16+
sh 'mvn -U -V -e clean install org.eclipse.dash:license-tool-plugin:license-check -Pits -Dmaven.repo.local=$WORKSPACE/.m2/repository'
1717
}
1818
post {
1919
always {

pom.xml

+10
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,16 @@
555555
</profile>
556556
</profiles>
557557

558+
<pluginRepositories>
559+
<pluginRepository>
560+
<id>dash-licenses-snapshots</id>
561+
<url>https://repo.eclipse.org/content/repositories/dash-licenses-snapshots/</url>
562+
<snapshots>
563+
<enabled>true</enabled>
564+
</snapshots>
565+
</pluginRepository>
566+
</pluginRepositories>
567+
558568
<distributionManagement>
559569
<site>
560570
<id>tycho.site</id>

0 commit comments

Comments
 (0)