Skip to content

Commit f0944fd

Browse files
committed
Merge remote-tracking branch 'origin/update-from-template' into develop
2 parents b7b71dc + dc731c3 commit f0944fd

File tree

8 files changed

+55
-46
lines changed

8 files changed

+55
-46
lines changed

.config/checkstyle/checkstyle.xml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<module name="LineLength">
1717
<property name="max" value="120"/>
1818
<property name="fileExtensions" value="java"/>
19-
<!-- Ignore default + links in comments -->
19+
<!-- Ignore default + links -->
2020
<property name="ignorePattern" value="(^(package|import))|(^\s*(\/\/|\*) .*https?.*$)"/>
2121
</module>
2222
<module name="NewlineAtEndOfFile"/>
@@ -30,10 +30,6 @@
3030
</module>
3131

3232
<!-- Generated code -->
33-
<module name="SuppressionSingleFilter">
34-
<property name="checks" value="."/>
35-
<property name="files" value="[\\/](src)?gen[\\/].*\.java$"/>
36-
</module>
3733
<module name="SuppressionSingleFilter">
3834
<property name="checks" value="."/>
3935
<property name="files" value="[\\/]src[\\/]gen(erated)?[\\/].*\.java$"/>
@@ -43,7 +39,15 @@
4339
<property name="checks" value="MagicNumberCheck"/>
4440
<property name="files" value="[\\/]test[\\/].*\.java$"/>
4541
</module>
42+
43+
<!-- Suppressions -->
4644
<module name="SuppressWarningsFilter"/>
45+
<!-- https://github.com/checkstyle/checkstyle/issues/7287 -->
46+
<module name="SuppressWithPlainTextCommentFilter">
47+
<property name="offCommentFormat" value="// CHECKSTYLE\:OFF ([\w\|]+)"/>
48+
<property name="onCommentFormat" value="// CHECKSTYLE\:ON ([\w\|]+)"/>
49+
<property name="checkFormat" value="$1"/>
50+
</module>
4751

4852
<module name="TreeWalker">
4953
<!-- Checks - sorted alphabetically -->
@@ -131,11 +135,5 @@
131135
<property name="tokens"
132136
value="ASSIGN,BAND,BAND_ASSIGN,BOR,BOR_ASSIGN,BSR,BSR_ASSIGN,BXOR,BXOR_ASSIGN,COLON,DIV,DIV_ASSIGN,EQUAL,GE,GT,LAND,LCURLY,LE,LOR,LT,MINUS,MINUS_ASSIGN,MOD,MOD_ASSIGN,NOT_EQUAL,PLUS,PLUS_ASSIGN,QUESTION,RCURLY,SL,SLIST,SL_ASSIGN,SR,SR_ASSIGN,STAR,STAR_ASSIGN,TYPE_EXTENSION_AND"/>
133137
</module>
134-
135-
<!-- Filter -->
136-
<module name="SuppressionCommentFilter">
137-
<property name="offCommentFormat" value="\s*CHECKSTYLE:OFF\s*[^\s]{1,}"/>
138-
<property name="onCommentFormat" value="\s*CHECKSTYLE:ON"/>
139-
</module>
140138
</module>
141139
</module>

.github/workflows/checkBuild.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ on:
77
paths-ignore:
88
- '**.md'
99
- '.config/**'
10+
- '.github/**'
1011
- '.idea/**'
1112
- 'assets/**'
1213
pull_request:
1314
branches: [ develop ]
1415
paths-ignore:
1516
- '**.md'
1617
- '.config/**'
18+
- '.github/**'
1719
- '.idea/**'
1820
- 'assets/**'
1921

.github/workflows/release.yml

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66

77
env:
88
PRIMARY_MAVEN_MODULE: ${{ github.event.repository.name }}
9-
DEMO_MAVEN_MODULE: ${{ github.event.repository.name }}-demo
109

1110
permissions:
1211
contents: write
@@ -58,17 +57,16 @@ jobs:
5857
run: |
5958
git config --global user.email "[email protected]"
6059
git config --global user.name "GitHub Actions"
61-
62-
- name: Un-SNAP root
63-
run: mvn -B versions:set -DremoveSnapshot -DgenerateBackupPoms=false
64-
65-
- name: Un-SNAP demo
66-
run: mvn -B versions:set -DremoveSnapshot -DgenerateBackupPoms=false
67-
working-directory: ${{ env.DEMO_MAVEN_MODULE }}
6860
6961
- name: Un-SNAP
70-
run: mvn -B versions:set -DremoveSnapshot -DgenerateBackupPoms=false
71-
working-directory: ${{ env.PRIMARY_MAVEN_MODULE }}
62+
run: |
63+
modules=("") # root
64+
modules+=($(grep -ozP '(?<=module>)[^<]+' 'pom.xml' | tr -d '\0'))
65+
for i in "${modules[@]}"
66+
do
67+
echo "Processing $i/pom.xml"
68+
(cd "$i" && mvn -B versions:set -DremoveSnapshot -DgenerateBackupPoms=false)
69+
done
7270
7371
- name: Get version
7472
id: version
@@ -204,17 +202,16 @@ jobs:
204202
git config --global user.email "[email protected]"
205203
git config --global user.name "GitHub Actions"
206204
git pull
207-
208-
- name: Inc Version and SNAP root
209-
run: mvn -B build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion} -DgenerateBackupPoms=false -DnextSnapshot=true
210-
211-
- name: Inc Version and SNAP demo
212-
run: mvn -B build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion} -DgenerateBackupPoms=false -DnextSnapshot=true
213-
working-directory: ${{ env.DEMO_MAVEN_MODULE }}
214-
205+
215206
- name: Inc Version and SNAP
216-
run: mvn -B build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion} -DgenerateBackupPoms=false -DnextSnapshot=true
217-
working-directory: ${{ env.PRIMARY_MAVEN_MODULE }}
207+
run: |
208+
modules=("") # root
209+
modules+=($(grep -ozP '(?<=module>)[^<]+' 'pom.xml' | tr -d '\0'))
210+
for i in "${modules[@]}"
211+
do
212+
echo "Processing $i/pom.xml"
213+
(cd "$i" && mvn -B build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion} -DgenerateBackupPoms=false -DnextSnapshot=true)
214+
done
218215
219216
- name: Git Commit and Push
220217
run: |

.github/workflows/sonar.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ on:
77
paths-ignore:
88
- '**.md'
99
- '.config/**'
10+
- '.github/**'
1011
- '.idea/**'
1112
- 'assets/**'
1213
pull_request:
1314
types: [opened, synchronize, reopened]
1415
paths-ignore:
1516
- '**.md'
1617
- '.config/**'
18+
- '.github/**'
1719
- '.idea/**'
1820
- 'assets/**'
1921

@@ -53,7 +55,12 @@ jobs:
5355
restore-keys: ${{ runner.os }}-m2
5456

5557
- name: Build with Maven
56-
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=${{ env.SONARCLOUD_ORG }}_${{ github.event.repository.name }} -Dsonar.organization=${{ env.SONARCLOUD_ORG }} -Dsonar.host.url=${{ env.SONARCLOUD_HOST }}
58+
run: |
59+
mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
60+
-DskipTests \
61+
-Dsonar.projectKey=${{ env.SONARCLOUD_ORG }}_${{ github.event.repository.name }} \
62+
-Dsonar.organization=${{ env.SONARCLOUD_ORG }} \
63+
-Dsonar.host.url=${{ env.SONARCLOUD_HOST }}
5764
env:
5865
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
5966
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.idea/codeStyles/Project.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2023 XDEV Software
189+
Copyright 2024 XDEV Software
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

sessionize-java-client-demo/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
<mainClass>software.xdev.Application</mainClass>
2727

28-
<log4j2-version>2.22.1</log4j2-version>
28+
<log4j2-version>2.23.1</log4j2-version>
2929
</properties>
3030

3131
<dependencies>
@@ -67,7 +67,7 @@
6767
<plugin>
6868
<groupId>org.apache.maven.plugins</groupId>
6969
<artifactId>maven-assembly-plugin</artifactId>
70-
<version>3.6.0</version>
70+
<version>3.7.0</version>
7171
<configuration>
7272
<archive>
7373
<manifest>
@@ -107,7 +107,7 @@
107107
<dependency>
108108
<groupId>com.puppycrawl.tools</groupId>
109109
<artifactId>checkstyle</artifactId>
110-
<version>10.12.7</version>
110+
<version>10.14.1</version>
111111
</dependency>
112112
</dependencies>
113113
<configuration>

sessionize-java-client/pom.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
<dependency>
9797
<groupId>com.fasterxml.jackson</groupId>
9898
<artifactId>jackson-bom</artifactId>
99-
<version>2.16.1</version>
99+
<version>2.17.0</version>
100100
<type>pom</type>
101101
<scope>import</scope>
102102
</dependency>
@@ -108,7 +108,7 @@
108108
<dependency>
109109
<groupId>org.apache.httpcomponents.client5</groupId>
110110
<artifactId>httpclient5</artifactId>
111-
<version>5.3</version>
111+
<version>5.3.1</version>
112112
</dependency>
113113

114114
<!-- JSON processing: jackson -->
@@ -244,7 +244,7 @@
244244
<plugin>
245245
<groupId>org.apache.maven.plugins</groupId>
246246
<artifactId>maven-gpg-plugin</artifactId>
247-
<version>3.1.0</version>
247+
<version>3.2.0</version>
248248
<executions>
249249
<execution>
250250
<id>sign-artifacts</id>
@@ -325,7 +325,7 @@
325325
<plugin>
326326
<groupId>org.openapitools</groupId>
327327
<artifactId>openapi-generator-maven-plugin</artifactId>
328-
<version>7.2.0</version>
328+
<version>7.4.0</version>
329329
<executions>
330330
<execution>
331331
<goals>
@@ -348,12 +348,12 @@
348348
<!-- Use newer Jakarta EE instead of Javax -->
349349
<useJakartaEe>true</useJakartaEe>
350350
<hideGenerationTimestamp>true</hideGenerationTimestamp>
351-
<!-- No tests and documentation because we don't use that -->
352-
<generateModelTests>false</generateModelTests>
353-
<generateApiTests>false</generateApiTests>
354-
<generateModelDocumentation>false</generateModelDocumentation>
355-
<generateApiDocumentation>false</generateApiDocumentation>
356351
</configOptions>
352+
<!-- No tests and documentation because we don't use that -->
353+
<generateModelTests>false</generateModelTests>
354+
<generateApiTests>false</generateApiTests>
355+
<generateModelDocumentation>false</generateModelDocumentation>
356+
<generateApiDocumentation>false</generateApiDocumentation>
357357
</configuration>
358358
</execution>
359359
</executions>
@@ -419,7 +419,7 @@
419419
<dependency>
420420
<groupId>com.puppycrawl.tools</groupId>
421421
<artifactId>checkstyle</artifactId>
422-
<version>10.12.7</version>
422+
<version>10.14.1</version>
423423
</dependency>
424424
</dependencies>
425425
<configuration>

0 commit comments

Comments
 (0)