Skip to content

Commit 8d4fa1b

Browse files
authored
Merge pull request #166 from xdev-software/develop
Release
2 parents c838d65 + c1cb3d6 commit 8d4fa1b

File tree

116 files changed

+2110
-2050
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+2110
-2050
lines changed
File renamed without changes.

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66

77
# Force MVN Wrapper Linux files LF
88
mvnw text eol=lf
9-
.mvn/wrapper/maven-wrapper.properties text eol=lf
9+
maven-wrapper.properties text eol=lf

.github/workflows/broken-links.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
- name: Link Checker
2121
id: lychee
22-
uses: lycheeverse/lychee-action@82202e5e9c2f4ef1a55a3d02563e1cb6041e5332 # v2
22+
uses: lycheeverse/lychee-action@5c4ee84814c983aa7164eaee476f014e53ff3963 # v2
2323
with:
2424
fail: false # Don't fail on broken links, create an issue instead
2525

@@ -31,13 +31,13 @@ jobs:
3131
GH_TOKEN: ${{ github.token }}
3232

3333
- name: Close issue if everything is fine
34-
if: env.lychee_exit_code == 0 && steps.find-issue.outputs.number != ''
34+
if: steps.lychee.outputs.exit_code == 0 && steps.find-issue.outputs.number != ''
3535
run: gh issue close -r 'not planned' ${{ steps.find-issue.outputs.number }}
3636
env:
3737
GH_TOKEN: ${{ github.token }}
3838

3939
- name: Create Issue From File
40-
if: env.lychee_exit_code != 0
40+
if: steps.lychee.outputs.exit_code != 0
4141
uses: peter-evans/create-issue-from-file@e8ef132d6df98ed982188e460ebb3b5d4ef3a9cd # v5
4242
with:
4343
issue-number: ${{ steps.find-issue.outputs.number }}

.github/workflows/release.yml

Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
needs: [check-code]
4949
timeout-minutes: 10
5050
outputs:
51-
upload_url: ${{ steps.create_release.outputs.upload_url }}
51+
upload_url: ${{ steps.create-release.outputs.upload_url }}
5252
steps:
5353
- uses: actions/checkout@v4
5454

@@ -58,15 +58,7 @@ jobs:
5858
git config --global user.name "GitHub Actions"
5959
6060
- name: Un-SNAP
61-
run: |
62-
mvnwPath=$(readlink -f ./mvnw)
63-
modules=("") # root
64-
modules+=($(grep -oP '(?<=<module>)[^<]+' 'pom.xml'))
65-
for i in "${modules[@]}"
66-
do
67-
echo "Processing $i/pom.xml"
68-
(cd "$i" && $mvnwPath -B versions:set -DremoveSnapshot -DgenerateBackupPoms=false)
69-
done
61+
run: ./mvnw -B versions:set -DremoveSnapshot -DprocessAllModules -DgenerateBackupPoms=false
7062

7163
- name: Get version
7264
id: version
@@ -84,8 +76,8 @@ jobs:
8476
git push origin --tags
8577
8678
- name: Create Release
87-
id: create_release
88-
uses: shogo82148/actions-create-release@e5f206451d4ace2da9916d01f1aef279997f8659 # v1
79+
id: create-release
80+
uses: shogo82148/actions-create-release@4661dc54f7b4b564074e9fbf73884d960de569a3 # v1
8981
with:
9082
tag_name: v${{ steps.version.outputs.release }}
9183
release_name: v${{ steps.version.outputs.release }}
@@ -118,17 +110,38 @@ jobs:
118110
git config --global user.email "[email protected]"
119111
git config --global user.name "GitHub Actions"
120112
git pull
113+
114+
- name: Set up JDK
115+
uses: actions/setup-java@v4
116+
with: # running setup-java overwrites the settings.xml
117+
distribution: 'temurin'
118+
java-version: '17'
119+
server-id: github-central
120+
server-password: PACKAGES_CENTRAL_TOKEN
121+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
122+
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Only import once
121123

124+
- name: Publish to GitHub Packages Central
125+
run: |
126+
modules=("bom")
127+
dependency_management_block=$(grep -ozP '<dependencyManagement>(\r|\n|.)*<\/dependencyManagement>' 'bom/pom.xml' | tr -d '\0')
128+
modules+=($(echo $dependency_management_block | grep -oP '(?<=<artifactId>)[^<]+'))
129+
printf -v modules_joined '%s,' "${modules[@]}"
130+
modules_arg=$(echo "${modules_joined%,}")
131+
./mvnw -B deploy -pl "$modules_arg" -am -T2C -P publish -DskipTests -DaltDeploymentRepository=github-central::https://maven.pkg.github.com/xdev-software/central
132+
env:
133+
PACKAGES_CENTRAL_TOKEN: ${{ secrets.PACKAGES_CENTRAL_TOKEN }}
134+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
135+
122136
- name: Set up JDK
123137
uses: actions/setup-java@v4
124138
with: # running setup-java again overwrites the settings.xml
125-
java-version: '17'
126139
distribution: 'temurin'
140+
java-version: '17'
127141
server-id: sonatype-central-portal
128142
server-username: MAVEN_CENTRAL_USERNAME
129143
server-password: MAVEN_CENTRAL_TOKEN
130144
gpg-passphrase: MAVEN_GPG_PASSPHRASE
131-
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
132145

133146
- name: Publish to Central Portal
134147
run: |
@@ -137,7 +150,7 @@ jobs:
137150
modules+=($(echo $dependency_management_block | grep -oP '(?<=<artifactId>)[^<]+'))
138151
printf -v modules_joined '%s,' "${modules[@]}"
139152
modules_arg=$(echo "${modules_joined%,}")
140-
./mvnw -B deploy -pl "$modules_arg" -am -T2C -P publish-sonatype-central-portal -DskipTests
153+
./mvnw -B deploy -pl "$modules_arg" -am -T2C -P publish,publish-sonatype-central-portal -DskipTests
141154
env:
142155
MAVEN_CENTRAL_USERNAME: ${{ secrets.SONATYPE_MAVEN_CENTRAL_PORTAL_USERNAME }}
143156
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_MAVEN_CENTRAL_PORTAL_TOKEN }}
@@ -196,15 +209,7 @@ jobs:
196209
git pull
197210
198211
- name: Inc Version and SNAP
199-
run: |
200-
mvnwPath=$(readlink -f ./mvnw)
201-
modules=("") # root
202-
modules+=($(grep -oP '(?<=<module>)[^<]+' 'pom.xml'))
203-
for i in "${modules[@]}"
204-
do
205-
echo "Processing $i/pom.xml"
206-
(cd "$i" && $mvnwPath -B build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion} -DgenerateBackupPoms=false -DnextSnapshot=true -DupdateMatchingVersions=false)
207-
done
212+
run: ./mvnw -B versions:set -DnextSnapshot -DprocessAllModules -DgenerateBackupPoms=false
208213

209214
- name: Git Commit and Push
210215
run: |

.github/workflows/run-integration-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Test
4848
run: |
4949
./mvnw -B test \
50-
-pl "demo/${{ matrix.project }}" -am \
50+
-pl "demo/integration-tests/${{ matrix.project }}" -am \
5151
-P run-it \
5252
${{ matrix.pre-start && '-Dinfra-pre-start.enabled=1 ' || '' }} \
5353
${{ matrix.parallel > 0 && format('-Djunit.jupiter.execution.parallel.enabled=true -Djunit.jupiter.execution.parallel.mode.default=concurrent -Djunit.jupiter.execution.parallel.mode.classes.default=concurrent -Djunit.jupiter.execution.parallel.config.strategy=fixed -Djunit.jupiter.execution.parallel.config.fixed.parallelism=2 -Djunit.jupiter.execution.parallel.config.fixed.max-pool-size={0} ', matrix.parallel) || '' }}
@@ -64,5 +64,5 @@ jobs:
6464
uses: actions/upload-artifact@v4
6565
with:
6666
name: test-fail-videos-${{ matrix.java }}-${{ env.PROJECT_NORMALIZED }}-${{ matrix.parallel }}-${{ matrix.pre-start }}
67-
path: ${{ matrix.project }}/target/records
67+
path: demo/integration-tests/${{ matrix.project }}/target/records
6868
if-no-files-found: ignore

.github/workflows/sonar.yml

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

.github/workflows/test-deploy.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,28 @@ jobs:
99
timeout-minutes: 60
1010
steps:
1111
- uses: actions/checkout@v4
12+
13+
- name: Set up JDK
14+
uses: actions/setup-java@v4
15+
with: # running setup-java overwrites the settings.xml
16+
distribution: 'temurin'
17+
java-version: '17'
18+
server-id: github-central
19+
server-password: PACKAGES_CENTRAL_TOKEN
20+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
21+
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Only import once
22+
23+
- name: Publish to GitHub Packages Central
24+
run: |
25+
modules=("bom")
26+
dependency_management_block=$(grep -ozP '<dependencyManagement>(\r|\n|.)*<\/dependencyManagement>' 'bom/pom.xml' | tr -d '\0')
27+
modules+=($(echo $dependency_management_block | grep -oP '(?<=<artifactId>)[^<]+'))
28+
printf -v modules_joined '%s,' "${modules[@]}"
29+
modules_arg=$(echo "${modules_joined%,}")
30+
./mvnw -B deploy -pl "$modules_arg" -am -T2C -P publish -DskipTests -DaltDeploymentRepository=github-central::https://maven.pkg.github.com/xdev-software/central
31+
env:
32+
PACKAGES_CENTRAL_TOKEN: ${{ secrets.PACKAGES_CENTRAL_TOKEN }}
33+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
1234

1335
- name: Set up JDK
1436
uses: actions/setup-java@v4
@@ -19,7 +41,6 @@ jobs:
1941
server-username: MAVEN_CENTRAL_USERNAME
2042
server-password: MAVEN_CENTRAL_TOKEN
2143
gpg-passphrase: MAVEN_GPG_PASSPHRASE
22-
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
2344

2445
- name: Publish to Central Portal
2546
run: |
@@ -28,7 +49,7 @@ jobs:
2849
modules+=($(echo $dependency_management_block | grep -oP '(?<=<artifactId>)[^<]+'))
2950
printf -v modules_joined '%s,' "${modules[@]}"
3051
modules_arg=$(echo "${modules_joined%,}")
31-
./mvnw -B deploy -pl "$modules_arg" -am -T2C -P publish-sonatype-central-portal -DskipTests
52+
./mvnw -B deploy -pl "$modules_arg" -am -T2C -P publish,publish-sonatype-central-portal -DskipTests
3253
env:
3354
MAVEN_CENTRAL_USERNAME: ${{ secrets.SONATYPE_MAVEN_CENTRAL_PORTAL_USERNAME }}
3455
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_MAVEN_CENTRAL_PORTAL_TOKEN }}

.gitignore

Lines changed: 9 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,37 @@
11
# Maven
22
target/
3-
pom.xml.tag
4-
pom.xml.releaseBackup
5-
pom.xml.versionsBackup
6-
pom.xml.next
7-
release.properties
83
dependency-reduced-pom.xml
9-
buildNumber.properties
10-
.mvn/timing.properties
11-
# https://github.com/takari/maven-wrapper#usage-without-binary-jar
4+
5+
# Maven Wrapper
126
.mvn/wrapper/maven-wrapper.jar
137

8+
# Maven Flatten Plugin
9+
.flattened-pom.xml
1410

1511
# Compiled class file
1612
*.class
1713

1814
# Log file
1915
*.log
2016

21-
# BlueJ files
22-
*.ctxt
23-
24-
# Mobile Tools for Java (J2ME)
25-
.mtj.tmp/
26-
2717
# Package/Binary Files don't belong into a git repo
2818
*.jar
2919
*.war
30-
*.nar
3120
*.ear
3221
*.zip
3322
*.tar.gz
34-
*.rar
3523
*.dll
3624
*.exe
3725
*.bin
3826

3927
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
4028
hs_err_pid*
4129

42-
# JRebel
43-
**/resources/rebel.xml
44-
**/resources/rebel-remote.xml
45-
46-
# eclispe stuff for root
47-
/.settings/
48-
/.classpath
49-
/.project
50-
51-
52-
# eclispe stuff for modules
53-
/*/.metadata/
54-
/*/.apt_generated_tests/
55-
/*/.settings/
56-
/*/.classpath
57-
/*/.project
58-
/*/RemoteSystemsTempFiles/
30+
# Eclipse
31+
.metadata
32+
.settings
33+
.classpath
34+
.project
5935

6036
#vaadin/node webpack/frontend stuff
6137
# Ignore Node
@@ -79,9 +55,6 @@ vite.generated.ts
7955
/**/src/main/bundles/
8056
*.lock
8157

82-
#custom
83-
.flattened-pom.xml
84-
.tern-project
8558

8659
# == IntelliJ ==
8760
*.iml

.idea/checkstyle-idea.xml

Lines changed: 1 addition & 1 deletion
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip
17+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.11/apache-maven-3.9.11-bin.zip

0 commit comments

Comments
 (0)