Skip to content

Commit f8e6f5e

Browse files
authored
verify license via GitHub actions (#5129)
Signed-off-by: Maxim Nesen <[email protected]>
1 parent ecfb15e commit f8e6f5e

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed

.github/workflows/maven.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#
2+
# Copyright (c) 2022 Contributors to the Eclipse Foundation
3+
#
4+
# This program and the accompanying materials are made available under the
5+
# terms of the Eclipse Public License v. 2.0 which is available at
6+
# http://www.eclipse.org/legal/epl-2.0,
7+
# or the Eclipse Distribution License v. 1.0 which is available at
8+
# http://www.eclipse.org/org/documents/edl-v10.php.
9+
#
10+
# SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
11+
#
12+
13+
name: Jersey
14+
15+
on: [push, pull_request]
16+
17+
jobs:
18+
build:
19+
name: Build on JDK ${{ matrix.java_version }} with ${{matrix.test_profiles}} profile
20+
runs-on: ubuntu-latest
21+
env:
22+
script-directory: $GITHUB_WORKSPACE/etc/jenkins
23+
24+
strategy:
25+
matrix:
26+
java_version: [ 11 ]
27+
verify_profiles: [ '-Plicense_check' ]
28+
continue-on-error: false
29+
30+
steps:
31+
- name: Checkout for build
32+
uses: actions/[email protected]
33+
with:
34+
fetch-depth: 0
35+
- name: Set up JDK
36+
uses: actions/setup-java@v2
37+
with:
38+
distribution: 'zulu'
39+
java-version: ${{ matrix.java_version }}
40+
- name: configure JDK
41+
run: |
42+
secLoc=`find $JAVA_HOME -name java.security`
43+
sed -i 's/jdk.tls.disabledAlgorithms/# jdk.tls.disabledAlgorithms/g' -i $secLoc
44+
- name: Build
45+
run: mvn -V -U -B ${{matrix.verify_profiles}} org.eclipse.dash:license-tool-plugin:license-check -DexcludeArtifactIds=bsh,jmh-core,jmh-generator-annprocess,swing-layout

containers/glassfish/jersey-gf-ejb/pom.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,34 @@
6666
<groupId>org.glassfish.main.ejb</groupId>
6767
<artifactId>ejb-container</artifactId>
6868
<scope>provided</scope>
69+
<exclusions>
70+
<exclusion>
71+
<groupId>org.glassfish.hk2</groupId>
72+
<artifactId>hk2-core</artifactId>
73+
</exclusion>
74+
</exclusions>
6975
</dependency>
7076
<dependency>
7177
<groupId>org.glassfish.main.common</groupId>
7278
<artifactId>container-common</artifactId>
7379
<scope>provided</scope>
80+
<exclusions>
81+
<exclusion>
82+
<groupId>org.glassfish.hk2</groupId>
83+
<artifactId>hk2-core</artifactId>
84+
</exclusion>
85+
</exclusions>
7486
</dependency>
7587
<dependency>
7688
<groupId>org.glassfish.main.hk2</groupId>
7789
<artifactId>hk2-config</artifactId>
7890
<optional>true</optional>
91+
<exclusions>
92+
<exclusion>
93+
<groupId>org.glassfish.hk2</groupId>
94+
<artifactId>hk2-core</artifactId>
95+
</exclusion>
96+
</exclusions>
7997
</dependency>
8098
</dependencies>
8199

0 commit comments

Comments
 (0)