Skip to content

Commit b3dbbae

Browse files
author
Dennis Labordus
authored
Merge pull request #103 from com-pas/dependabot/maven/org.slf4j-slf4j-simple-2.0.0
Bump slf4j-simple from 1.7.36 to 2.0.0
2 parents a8823eb + ce82d6c commit b3dbbae

File tree

5 files changed

+57
-50
lines changed

5 files changed

+57
-50
lines changed

.github/workflows/automate-projects.yml

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,17 @@ jobs:
1212

1313
if: ${{ (github.event_name != 'pull_request_target' && github.actor != 'dependabot[bot]') || (github.actor == 'dependabot[bot]' && github.event_name == 'pull_request_target') }}
1414
steps:
15-
- name: add-new-issues-to-repository-based-project-column
16-
uses: docker://takanabe/github-actions-automate-projects:v0.0.1
17-
if: github.event_name == 'issues' && github.event.action == 'opened'
18-
env:
19-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20-
GITHUB_PROJECT_URL: https://github.com/com-pas/compas-scl-validator/projects/1
21-
GITHUB_PROJECT_COLUMN_NAME: To do
22-
- name: add-new-pull-request-to-repository-based-project-column
23-
uses: docker://takanabe/github-actions-automate-projects:v0.0.1
24-
if: (github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && github.event.action == 'opened'
25-
env:
26-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27-
GITHUB_PROJECT_URL: https://github.com/com-pas/compas-scl-validator/projects/1
28-
GITHUB_PROJECT_COLUMN_NAME: To do
2915
- name: add-new-issues-to-organization-based-project-column
30-
uses: docker://takanabe/github-actions-automate-projects:v0.0.1
3116
if: github.event_name == 'issues' && github.event.action == 'opened'
32-
env:
33-
GITHUB_TOKEN: ${{ secrets.ORG_GITHUB_ACTION_SECRET }}
34-
GITHUB_PROJECT_URL: https://github.com/orgs/com-pas/projects/1
35-
GITHUB_PROJECT_COLUMN_NAME: To do
17+
uses: alex-page/[email protected]
18+
with:
19+
project: CoMPAS Issues Overview Board
20+
column: To do
21+
repo-token: ${{ secrets.ORG_GITHUB_ACTION_SECRET }}
3622
- name: add-new-pull-request-to-organization-based-project-column
37-
uses: docker://takanabe/github-actions-automate-projects:v0.0.1
3823
if: (github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && github.event.action == 'opened'
39-
env:
40-
GITHUB_TOKEN: ${{ secrets.ORG_GITHUB_ACTION_SECRET }}
41-
GITHUB_PROJECT_URL: https://github.com/orgs/com-pas/projects/2
42-
GITHUB_PROJECT_COLUMN_NAME: To do
24+
uses: alex-page/[email protected]
25+
with:
26+
project: CoMPAS Pull Request Overview Board
27+
column: To do
28+
repo-token: ${{ secrets.ORG_GITHUB_ACTION_SECRET }}

.github/workflows/build-project.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ jobs:
2424
uses: actions/checkout@v3
2525
with:
2626
submodules: 'true'
27-
- name: Set up Docker Buildx
28-
id: buildx
29-
uses: docker/setup-buildx-action@v2
27+
3028
- name: Cache Docker Register
3129
uses: actions/cache@v3
3230
with:
@@ -39,6 +37,9 @@ jobs:
3937
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
4038
restore-keys: ${{ runner.os }}-m2
4139

40+
- name: Set up Docker Buildx
41+
id: buildx
42+
uses: docker/setup-buildx-action@v2
4243
- name: Set up JDK 17
4344
uses: actions/setup-java@v3
4445
with:

.github/workflows/release-project.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,7 @@ jobs:
1919
uses: actions/checkout@v3
2020
with:
2121
submodules: 'true'
22-
- name: Set up Docker Buildx
23-
id: buildx
24-
uses: docker/setup-buildx-action@v2
25-
- name: Login to Docker Hub
26-
uses: docker/login-action@v2
27-
with:
28-
username: ${{ secrets.DOCKER_HUB_USERNAME }}
29-
password: ${{ secrets.DOCKER_HUB_TOKEN }}
22+
3023
- name: Cache Docker Register
3124
uses: actions/cache@v3
3225
with:
@@ -42,13 +35,22 @@ jobs:
4235
- name: Extract tag name
4336
id: extract_tagname
4437
shell: bash
45-
# Extra the tagname form the git reference, value of GITHUB_REF will be something like refs/tags/<tag_name>.
38+
# Extract the tag name from the git reference, value of GITHUB_REF will be something like refs/tags/<tag_name>.
4639
run: echo "##[set-output name=tagname;]$(echo ${GITHUB_REF##*/})"
40+
4741
- name: Set up JDK 17
4842
uses: actions/setup-java@v3
4943
with:
5044
distribution: 'zulu'
5145
java-version: '17'
46+
- name: Set up Docker Buildx
47+
id: buildx
48+
uses: docker/setup-buildx-action@v2
49+
- name: Login to Docker Hub
50+
uses: docker/login-action@v2
51+
with:
52+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
53+
password: ${{ secrets.DOCKER_HUB_TOKEN }}
5254

5355
- name: Create custom Maven Settings.xml
5456
uses: whelk-io/maven-settings-xml-action@v20

.github/workflows/sonarcloud-analysis.yml

Lines changed: 31 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ jobs:
3131
fetch-depth: 0
3232
submodules: 'true'
3333

34-
- name: Set up JDK 17
35-
uses: actions/setup-java@v3
36-
with:
37-
distribution: 'zulu'
38-
java-version: '17'
3934
- name: Cache SonarCloud packages
4035
uses: actions/cache@v3
4136
with:
@@ -49,20 +44,43 @@ jobs:
4944
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
5045
restore-keys: ${{ runner.os }}-m2
5146

47+
- name: Set up JDK 17
48+
uses: actions/setup-java@v3
49+
with:
50+
distribution: 'zulu'
51+
java-version: '17'
52+
53+
- name: Set Common Sonar Variables
54+
id: sonar_env
55+
run: |
56+
echo "##[set-output name=sonar_opts;]$(echo -Dsonar.host.url=https://sonarcloud.io \
57+
-Dsonar.projectKey=com-pas_compas-scl-validator \
58+
-Dsonar.organization=com-pas )"
5259
- name: Create custom Maven Settings.xml
5360
uses: whelk-io/maven-settings-xml-action@v20
5461
with:
5562
output_file: custom_maven_settings.xml
5663
servers: '[{ "id": "github-packages-compas", "username": "OWNER", "password": "${{ secrets.GITHUB_TOKEN }}" }]'
57-
- name: Build and analyze
64+
- name: Build and analyze (Pull Request)
65+
if: ${{ github.event_name == 'pull_request' || (github.actor == 'dependabot[bot]' && github.event_name == 'pull_request_target') }}
66+
env:
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
69+
run: |
70+
./mvnw -B -s custom_maven_settings.xml -Psonar \
71+
${{ steps.sonar_env.outputs.sonar_opts }} \
72+
-Dsonar.pullrequest.branch=${{ github.ref_name }} \
73+
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }} \
74+
-Dsonar.pullrequest.base=${{ github.base_ref }} \
75+
-Dsonar.scm.revision=${{ github.event.pull_request.head.sha }} \
76+
clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
77+
- name: Build and analyze (Push)
78+
if: ${{ github.event_name == 'push' }}
5879
env:
59-
GITHUB_USERNAME: "OWNER"
6080
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6181
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
6282
run: |
63-
./mvnw -s custom_maven_settings.xml -B -Psonar \
64-
-Dsonar.projectKey=com-pas_compas-scl-validator \
65-
-Dsonar.organization=com-pas \
66-
-Dsonar.host.url=https://sonarcloud.io \
67-
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }} \
68-
clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
83+
./mvnw -B -s custom_maven_settings.xml -Psonar \
84+
${{ steps.sonar_env.outputs.sonar_opts }} \
85+
-Dsonar.branch.name=${{ github.ref_name }} \
86+
clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ SPDX-License-Identifier: Apache-2.0
2727
<compas.core.version>0.9.1</compas.core.version>
2828

2929
<quarkus.platform.version>2.10.3.Final</quarkus.platform.version>
30-
<slf4j.version>1.7.36</slf4j.version>
30+
<slf4j.version>2.0.0</slf4j.version>
3131
<openpojo.version>0.9.1</openpojo.version>
3232
</properties>
3333

0 commit comments

Comments
 (0)