Skip to content

Commit

Permalink
Merge pull request #1162 from eclipse-passage/1161
Browse files Browse the repository at this point in the history
Employ Eclipse Dash license check #1161
  • Loading branch information
eparovyshnaya authored Nov 28, 2022
2 parents 2d4cc7a + 6920c47 commit 0d74f06
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/licensecheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This workflow will check for Maven projects if the licenses of all (transitive) dependencies are vetted.

name: License vetting status check

on:
push:
branches:
- 'master'
- 'R*'
pull_request:
branches:
- 'master'
- 'R*'
issue_comment:
types: [created]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: License check
run: |
mvn -U -V -e -B -ntp org.eclipse.dash:license-tool-plugin:license-check --file pom.xml
10 changes: 10 additions & 0 deletions releng/org.eclipse.passage.parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,16 @@
<enabled>true</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>eclipse-dash</id>
<url>https://repo.eclipse.org/content/repositories/dash-licenses/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>

<repositories>
Expand Down

0 comments on commit 0d74f06

Please sign in to comment.