Skip to content

Commit dc7109f

Browse files
authored
Adapts Dash License Workflow (#835)
* Adds missing tags in poms * Changes GitHub Workflow for Dash License Checks * Updates Workflow
1 parent f17cfc2 commit dc7109f

File tree

2 files changed

+47
-13
lines changed

2 files changed

+47
-13
lines changed

.github/workflows/dash-license.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Dash License Check
2+
3+
on:
4+
push:
5+
paths:
6+
- '**/pom.xml'
7+
pull_request:
8+
paths:
9+
- '**/pom.xml'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Set up JDK 17
20+
uses: actions/setup-java@v4
21+
with:
22+
distribution: temurin
23+
java-version: 17
24+
25+
- name: Build with Maven
26+
run: mvn org.eclipse.dash:license-tool-plugin:license-check -PDashLicense

pom.xml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,6 +1442,27 @@
14421442
</dependencies>
14431443

14441444
<profiles>
1445+
<profile>
1446+
<id>DashLicense</id>
1447+
<build>
1448+
<plugins>
1449+
1450+
<plugin>
1451+
<groupId>org.eclipse.dash</groupId>
1452+
<artifactId>license-tool-plugin</artifactId>
1453+
<version>1.1.1-SNAPSHOT</version>
1454+
<executions>
1455+
<execution>
1456+
<id>license-check</id>
1457+
<goals>
1458+
<goal>license-check</goal>
1459+
</goals>
1460+
</execution>
1461+
</executions>
1462+
</plugin>
1463+
</plugins>
1464+
</build>
1465+
</profile>
14451466
<profile>
14461467
<id>MavenCentral</id>
14471468
<activation>
@@ -1480,19 +1501,6 @@
14801501
</execution>
14811502
</executions>
14821503
</plugin>
1483-
<plugin>
1484-
<groupId>org.eclipse.dash</groupId>
1485-
<artifactId>license-tool-plugin</artifactId>
1486-
<version>1.1.1-SNAPSHOT</version>
1487-
<executions>
1488-
<execution>
1489-
<id>license-check</id>
1490-
<goals>
1491-
<goal>license-check</goal>
1492-
</goals>
1493-
</execution>
1494-
</executions>
1495-
</plugin>
14961504
<plugin>
14971505
<groupId>org.apache.maven.plugins</groupId>
14981506
<artifactId>maven-javadoc-plugin</artifactId>

0 commit comments

Comments
 (0)