Skip to content

Commit

Permalink
GH-4452: Add Dash license-check CI (#4453)
Browse files Browse the repository at this point in the history
  • Loading branch information
abrokenjester committed Feb 25, 2023
2 parents 5808bbf + 24e6bb0 commit 2fbb835
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/dash-license.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: dash license

on:
pull_request:
workflow_dispatch:

jobs:
license-check:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '19'
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-jdk19-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-jdk19-maven-
- name: Run license-check
run: mvn -B -Plicence-check org.eclipse.dash:license-tool-plugin:license-check -Ddash.summary=DEPENDENCIES
- name: Print Dash Summary
if: always()
run: cat DEPENDENCIES
26 changes: 26 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,32 @@
</repository>
</repositories>
</profile>
<profile>
<id>licence-check</id>
<pluginRepositories>
<pluginRepository>
<id>dash-licenses-snapshots</id>
<url>https://repo.eclipse.org/content/repositories/dash-licenses-snapshots/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.dash</groupId>
<artifactId>license-tool-plugin</artifactId>
<version>0.0.1-SNAPSHOT</version>
<configuration>
<failWhenReviewNeeded>true</failWhenReviewNeeded>
<!-- TODO: maven/mavencentral/org.openjdk.jmh/jmh-generator-annprocess/1.35, GPL-2.0-only WITH Classpath-exception-2.0, restricted, #3045 -->
<excludeGroupIds>org.openjdk.jmh</excludeGroupIds>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>formatting</id>
<activation>
Expand Down

0 comments on commit 2fbb835

Please sign in to comment.