Skip to content

Commit 52450e4

Browse files
committed
Merge remote-tracking branch 'origin/update-from-template' into develop
2 parents 4e5a134 + b581783 commit 52450e4

File tree

15 files changed

+591
-86
lines changed

15 files changed

+591
-86
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/dependabot.yml

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

.github/workflows/checkBuild.yml

Lines changed: 6 additions & 3 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

@@ -40,7 +42,7 @@ jobs:
4042
cache: 'maven'
4143

4244
- name: Build with Maven
43-
run: mvn -B clean package
45+
run: ./mvnw -B clean package
4446

4547
- name: Check for uncommited changes
4648
run: |
@@ -56,12 +58,13 @@ jobs:
5658
echo ----------------------------------------
5759
echo Troubleshooting
5860
echo ----------------------------------------
59-
echo "::error::Unstaged changes detected. Locally try running: git clean -ffdx && mvn -B clean package"
61+
echo "::error::Unstaged changes detected. Locally try running: git clean -ffdx && ./mvnw -B clean package"
6062
exit 1
6163
fi
6264
6365
code-style:
6466
runs-on: ubuntu-latest
67+
if: ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'renovate/') }}
6568

6669
strategy:
6770
matrix:
@@ -79,4 +82,4 @@ jobs:
7982
cache: 'maven'
8083

8184
- name: Run Checkstyle
82-
run: mvn -B checkstyle:check -P checkstyle -T2C
85+
run: ./mvnw -B checkstyle:check -P checkstyle -T2C

.github/workflows/release.yml

Lines changed: 12 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
cache: 'maven'
2626

2727
- name: Build with Maven
28-
run: mvn -B clean package
28+
run: ./mvnw -B clean package
2929

3030
- name: Check for uncommited changes
3131
run: |
@@ -41,7 +41,7 @@ jobs:
4141
echo ----------------------------------------
4242
echo Troubleshooting
4343
echo ----------------------------------------
44-
echo "::error::Unstaged changes detected. Locally try running: git clean -ffdx && mvn -B clean package"
44+
echo "::error::Unstaged changes detected. Locally try running: git clean -ffdx && ./mvnw -B clean package"
4545
exit 1
4646
fi
4747
@@ -60,18 +60,19 @@ jobs:
6060
6161
- name: Un-SNAP
6262
run: |
63+
mvnwPath=$(readlink -f ./mvnw)
6364
modules=("") # root
6465
modules+=($(grep -ozP '(?<=module>)[^<]+' 'pom.xml' | tr -d '\0'))
6566
for i in "${modules[@]}"
6667
do
6768
echo "Processing $i/pom.xml"
68-
(cd "$i" && mvn -B versions:set -DremoveSnapshot -DgenerateBackupPoms=false)
69+
(cd "$i" && $mvnwPath -B versions:set -DremoveSnapshot -DgenerateBackupPoms=false)
6970
done
7071
7172
- name: Get version
7273
id: version
7374
run: |
74-
version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
75+
version=$(../mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)
7576
echo "release=$version" >> $GITHUB_OUTPUT
7677
echo "releasenumber=${version//[!0-9]/}" >> $GITHUB_OUTPUT
7778
working-directory: ${{ env.PRIMARY_MAVEN_MODULE }}
@@ -127,15 +128,14 @@ jobs:
127128
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
128129

129130
- name: Publish to Apache Maven Central
130-
run: mvn -B deploy -Possrh
131+
run: ../mvnw -B deploy -Possrh
131132
env:
132133
MAVEN_CENTRAL_USERNAME: ${{ secrets.S01_OSS_SONATYPE_MAVEN_USERNAME }}
133134
MAVEN_CENTRAL_TOKEN: ${{ secrets.S01_OSS_SONATYPE_MAVEN_TOKEN }}
134135
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
135136
working-directory: ${{ env.PRIMARY_MAVEN_MODULE }}
136137

137138
publish-pages:
138-
name: Publish dependencies and licenses to github pages
139139
runs-on: ubuntu-latest
140140
needs: [prepare_release]
141141
steps:
@@ -154,40 +154,15 @@ jobs:
154154
distribution: 'temurin'
155155
cache: 'maven'
156156

157-
- name: Build dependencies/licenses files
158-
run: mvn -B project-info-reports:dependencies
157+
- name: Build site
158+
run: ../mvnw -B site
159159
working-directory: ${{ env.PRIMARY_MAVEN_MODULE }}
160160

161-
- name: Upload licenses - Upload Artifact
162-
uses: actions/upload-artifact@v4
163-
with:
164-
name: dependencies-licenses
165-
path: ${{ env.PRIMARY_MAVEN_MODULE }}/target/site
166-
167-
- name: Generate docs/dependencies dir
168-
run: mkdir -p docs/dependencies
169-
170-
- name: Move built files into docs/dependencies
171-
run: mv ${{ env.PRIMARY_MAVEN_MODULE }}/target/site/* docs/dependencies
172-
173-
- name: Rename dependencies.html to index.html
174-
working-directory: docs/dependencies
175-
run: mv dependencies.html index.html
176-
177-
- name: Copy Readme into docs (as index.md)
178-
run: cp README.md docs/index.md
179-
180-
- name: Configure Pages
181-
working-directory: docs
182-
run: |-
183-
echo "theme: jekyll-theme-tactile" > _config.yml
184-
185161
- name: Deploy to Github pages
186-
uses: peaceiris/actions-gh-pages@v3
162+
uses: peaceiris/actions-gh-pages@v4
187163
with:
188164
github_token: ${{ secrets.GITHUB_TOKEN }}
189-
publish_dir: ./docs
190-
enable_jekyll: true
165+
publish_dir: ./${{ env.PRIMARY_MAVEN_MODULE }}/target/site
191166

192167
after_release:
193168
runs-on: ubuntu-latest
@@ -203,12 +178,13 @@ jobs:
203178
204179
- name: Inc Version and SNAP
205180
run: |
181+
mvnwPath=$(readlink -f ./mvnw)
206182
modules=("") # root
207183
modules+=($(grep -ozP '(?<=module>)[^<]+' 'pom.xml' | tr -d '\0'))
208184
for i in "${modules[@]}"
209185
do
210186
echo "Processing $i/pom.xml"
211-
(cd "$i" && mvn -B build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion} -DgenerateBackupPoms=false -DnextSnapshot=true)
187+
(cd "$i" && $mvnwPath -B build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion} -DgenerateBackupPoms=false -DnextSnapshot=true)
212188
done
213189
214190
- name: Git Commit and Push

.github/workflows/sonar.yml

Lines changed: 4 additions & 3 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
types: [opened, synchronize, reopened]
1415
paths-ignore:
1516
- '**.md'
1617
- '.config/**'
18+
- '.github/**'
1719
- '.idea/**'
1820
- 'assets/**'
1921

@@ -25,8 +27,7 @@ jobs:
2527
sonar:
2628
name: SonarCloud Scan
2729
runs-on: ubuntu-latest
28-
# Dependabot PRs have no access to secrets (SONAR_TOKEN) -> Ignore them
29-
if: ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'dependabot/') }}
30+
if: ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'renovate/') }}
3031
steps:
3132
- uses: actions/checkout@v4
3233
with:
@@ -54,7 +55,7 @@ jobs:
5455

5556
- name: Build with Maven
5657
run: |
57-
mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
58+
./mvnw -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
5859
-DskipTests \
5960
-Dsonar.projectKey=${{ env.SONARCLOUD_ORG }}_${{ github.event.repository.name }} \
6061
-Dsonar.organization=${{ env.SONARCLOUD_ORG }} \

.github/workflows/test-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
2525

2626
- name: Publish to OSSRH
27-
run: mvn -B deploy -Possrh
27+
run: ../mvnw -B deploy -Possrh
2828
working-directory: ${{ env.PRIMARY_MAVEN_MODULE }}
2929
env:
3030
MAVEN_CENTRAL_USERNAME: ${{ secrets.S01_OSS_SONATYPE_MAVEN_USERNAME }}

.idea/checkstyle-idea.xml

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

.mvn/wrapper/maven-wrapper.properties

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.6/apache-maven-3.9.6-bin.zip
18+
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ We also encourage you to read the [contribution instructions by GitHub](https://
2020
You should have the following things installed:
2121
* Git
2222
* Java 21 - should be as unmodified as possible (Recommended: [Eclipse Adoptium](https://adoptium.net/temurin/releases/))
23-
* Maven
23+
* Maven (Note that the [Maven Wrapper](https://maven.apache.org/wrapper/) is shipped with the repo)
2424

2525
### Recommended setup
2626
* Install ``IntelliJ`` (Community Edition is sufficient)

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.

0 commit comments

Comments
 (0)