Skip to content

Commit f9fbb8a

Browse files
authored
Merge pull request #453 from com-pas/develop
chore: Merge develop into main
2 parents ee827be + f8728b3 commit f9fbb8a

13 files changed

+40
-81
lines changed

.github/workflows/automate-projects.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/build-project.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,10 @@ jobs:
2424
uses: actions/checkout@v4
2525

2626
- name: Cache Docker Register
27-
uses: actions/cache@v3
27+
uses: actions/cache@v4
2828
with:
2929
path: /tmp/.buildx-cache
3030
key: ${{ runner.os }}-buildx-${{ hashFiles('**/Dockerfile') }}
31-
- name: Cache Maven packages
32-
uses: actions/cache@v3
33-
with:
34-
path: ~/.m2
35-
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
36-
restore-keys: ${{ runner.os }}-m2
3731

3832
- name: Set up Docker Buildx
3933
id: buildx
@@ -43,6 +37,7 @@ jobs:
4337
with:
4438
distribution: 'zulu'
4539
java-version: '17'
40+
cache: 'maven'
4641

4742
- name: Create custom Maven Settings.xml
4843
uses: whelk-io/maven-settings-xml-action@v21

.github/workflows/release-please.yml

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
permissions:
1010
contents: write
11+
packages: write
1112
pull-requests: write
1213

1314
name: release-please
@@ -19,40 +20,25 @@ jobs:
1920
- uses: google-github-actions/release-please-action@v4
2021
id: release
2122
with:
22-
release-type: maven
23-
package-name: compas-cim-mapping
24-
target-branch: ${{ github.ref_name }}
25-
- if: ${{ steps.release.outputs.release_created }}
26-
name: Checkout
23+
target-branch: main
24+
- name: Checkout
25+
if: ${{ steps.release.outputs.release_created }}
2726
uses: actions/checkout@v4
2827

2928
- name: Cache Docker Register
3029
if: ${{ steps.release.outputs.release_created }}
31-
uses: actions/cache@v3
30+
uses: actions/cache@v4
3231
with:
3332
path: /tmp/.buildx-cache
3433
key: ${{ runner.os }}-buildx-${{ hashFiles('**/Dockerfile') }}
35-
- name: Cache Maven packages
36-
if: ${{ steps.release.outputs.release_created }}
37-
uses: actions/cache@v3
38-
with:
39-
path: ~/.m2
40-
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
41-
restore-keys: ${{ runner.os }}-m2
42-
43-
- name: Extract tag name
44-
if: ${{ steps.release.outputs.release_created }}
45-
id: extract_tagname
46-
shell: bash
47-
# Extract the tag name from the git reference, value of GITHUB_REF will be something like refs/tags/<tag_name>.
48-
run: echo "##[set-output name=tagname;]$(echo ${GITHUB_REF##*/})"
4934

5035
- name: Set up JDK 17
5136
if: ${{ steps.release.outputs.release_created }}
5237
uses: actions/setup-java@v4
5338
with:
5439
distribution: 'zulu'
5540
java-version: '17'
41+
cache: 'maven'
5642
- name: Set up Docker Buildx
5743
if: ${{ steps.release.outputs.release_created }}
5844
id: buildx
@@ -66,15 +52,10 @@ jobs:
6652

6753
- name: Create custom Maven Settings.xml
6854
if: ${{ steps.release.outputs.release_created }}
69-
uses: whelk-io/maven-settings-xml-action@v21
55+
uses: whelk-io/maven-settings-xml-action@v22
7056
with:
7157
output_file: custom_maven_settings.xml
7258
servers: '[{ "id": "github-packages-compas", "username": "OWNER", "password": "${{ secrets.GITHUB_TOKEN }}" }]'
73-
- name: Set version with Maven
74-
if: ${{ steps.release.outputs.release_created }}
75-
run: ./mvnw -B versions:set -DprocessAllModules=true -DnewVersion=${{ steps.extract_tagname.outputs.tagname }}
76-
env:
77-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7859
- name: Deploy with Maven to GitHub Packages and Docker Hub
7960
if: ${{ steps.release.outputs.release_created }}
8061
run: ./mvnw -B -s custom_maven_settings.xml -Pnative-image,release clean deploy

.github/workflows/reuse.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313
- name: Checkout
1414
uses: actions/checkout@v4
1515
- name: REUSE Compliance Check
16-
uses: fsfe/reuse-action@v2
16+
uses: fsfe/reuse-action@v3

.github/workflows/sonarcloud-analysis.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,23 +54,18 @@ jobs:
5454
git checkout ${{ github.event.workflow_run.head_branch }}
5555
git clean -ffdx && git reset --hard HEAD
5656
- name: Cache SonarCloud packages
57-
uses: actions/cache@v3
57+
uses: actions/cache@v4
5858
with:
5959
path: ~/.sonar/cache
6060
key: ${{ runner.os }}-sonar
6161
restore-keys: ${{ runner.os }}-sonar
62-
- name: Cache Maven packages
63-
uses: actions/cache@v3
64-
with:
65-
path: ~/.m2
66-
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
67-
restore-keys: ${{ runner.os }}-m2
6862

6963
- name: Set up JDK 17
7064
uses: actions/setup-java@v4
7165
with:
7266
distribution: 'zulu'
7367
java-version: '17'
68+
cache: 'maven'
7469

7570
- name: Set Common Sonar Variables
7671
id: sonar_env

.github/workflows/sonarcloud-build.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,18 @@ jobs:
3131
fetch-depth: 0
3232

3333
- name: Cache SonarCloud packages
34-
uses: actions/cache@v3
34+
uses: actions/cache@v4
3535
with:
3636
path: ~/.sonar/cache
3737
key: ${{ runner.os }}-sonar
3838
restore-keys: ${{ runner.os }}-sonar
39-
- name: Cache Maven packages
40-
uses: actions/cache@v3
41-
with:
42-
path: ~/.m2
43-
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
44-
restore-keys: ${{ runner.os }}-m2
4539

4640
- name: Set up JDK 17
4741
uses: actions/setup-java@v4
4842
with:
4943
distribution: 'zulu'
5044
java-version: '17'
45+
cache: 'maven'
5146

5247
- name: Create custom Maven Settings.xml
5348
uses: whelk-io/maven-settings-xml-action@v21

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.10.4"
3+
}

.release-please-manifest.json.license

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SPDX-FileCopyrightText: 2024 Alliander N.V.
2+
3+
SPDX-License-Identifier: Apache-2.0

app/src/main/docker/Dockerfile.jvm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# docker run -i --rm -p 8080:8080 -p 5005:5005 -e JAVA_ENABLE_DEBUG="true" quarkus/app-jvm
2222
#
2323
###
24-
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.9-1108
24+
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.10-1154
2525

2626
ARG JAVA_PACKAGE=java-17-openjdk-headless
2727
ARG RUN_JAVA_VERSION=1.3.8

app/src/main/docker/Dockerfile.native

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# docker run -i --rm -p 8080:8080 quarkus/app
1515
#
1616
###
17-
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.9-1108
17+
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.10-1154
1818
WORKDIR /work/
1919
RUN chown 1001 /work \
2020
&& chmod "g+rwX" /work \

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ SPDX-License-Identifier: Apache-2.0
1919
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2020
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
2121

22-
<compiler-plugin.version>3.12.1</compiler-plugin.version>
22+
<compiler-plugin.version>3.13.0</compiler-plugin.version>
2323
<surefire-plugin.version>3.2.5</surefire-plugin.version>
2424
<sonarqube-plugin.version>3.2.0</sonarqube-plugin.version>
2525

2626
<compas.core.version>0.11.0</compas.core.version>
2727

2828
<quarkus.platform.version>2.16.6.Final</quarkus.platform.version>
2929
<microprofile-openapi-api.version>3.1.1</microprofile-openapi-api.version>
30-
<powsybl.version>6.1.1</powsybl.version>
31-
<log4j2.version>2.22.1</log4j2.version>
30+
<powsybl.version>6.3.0</powsybl.version>
31+
<log4j2.version>2.23.1</log4j2.version>
3232
<mapstruct.version>1.5.5.Final</mapstruct.version>
3333
<openpojo.version>0.9.1</openpojo.version>
3434
</properties>

release-please-config.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"bootstrap-sha": "2dc26242b596d099a88f61063a063c710db0a8de",
4+
"include-component-in-tag": false,
5+
"packages": {
6+
".": {
7+
"release-type": "maven",
8+
"package-name": "compas-cim-mapping",
9+
"initial-version": "0.10.4"
10+
}
11+
}
12+
}

release-please-config.json.license

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SPDX-FileCopyrightText: 2024 Alliander N.V.
2+
3+
SPDX-License-Identifier: Apache-2.0

0 commit comments

Comments
 (0)