File tree 3 files changed +48
-1
lines changed
3 files changed +48
-1
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ pipeline {
13
13
stages {
14
14
stage(' Build' ) {
15
15
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'
17
17
}
18
18
post {
19
19
always {
Original file line number Diff line number Diff line change 555
555
</profile >
556
556
</profiles >
557
557
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
+
558
568
<distributionManagement >
559
569
<site >
560
570
<id >tycho.site</id >
You can’t perform that action at this time.
0 commit comments