Skip to content

Commit 5aeca26

Browse files
committed
Merge remote-tracking branch 'origin/update-from-template' into develop
2 parents 8435de3 + a9be6ca commit 5aeca26

File tree

14 files changed

+586
-79
lines changed

14 files changed

+586
-79
lines changed

.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

@@ -41,7 +43,7 @@ jobs:
4143
cache: 'maven'
4244

4345
- name: Build with Maven
44-
run: mvn -B clean package -Pproduction
46+
run: ./mvnw -B clean package -Pproduction
4547

4648
- name: Check for uncommited changes
4749
run: |
@@ -57,7 +59,7 @@ jobs:
5759
echo ----------------------------------------
5860
echo Troubleshooting
5961
echo ----------------------------------------
60-
echo "::error::Unstaged changes detected. Locally try running: git clean -ffdx && mvn -B clean package -Pproduction"
62+
echo "::error::Unstaged changes detected. Locally try running: git clean -ffdx && ./mvnw -B clean package -Pproduction"
6163
exit 1
6264
fi
6365
@@ -70,6 +72,7 @@ jobs:
7072

7173
code-style:
7274
runs-on: ubuntu-latest
75+
if: ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'renovate/') }}
7376

7477
strategy:
7578
matrix:
@@ -87,4 +90,4 @@ jobs:
8790
cache: 'maven'
8891

8992
- name: Run Checkstyle
90-
run: mvn -B checkstyle:check -P checkstyle -T2C
93+
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 -Pproduction
28+
run: ./mvnw -B clean package -Pproduction
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 -Pproduction"
44+
echo "::error::Unstaged changes detected. Locally try running: git clean -ffdx && ./mvnw -B clean package -Pproduction"
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 }}
@@ -132,15 +133,14 @@ jobs:
132133
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
133134

134135
- name: Publish to Apache Maven Central
135-
run: mvn -B deploy -Possrh
136+
run: ../mvnw -B deploy -Possrh
136137
env:
137138
MAVEN_CENTRAL_USERNAME: ${{ secrets.S01_OSS_SONATYPE_MAVEN_USERNAME }}
138139
MAVEN_CENTRAL_TOKEN: ${{ secrets.S01_OSS_SONATYPE_MAVEN_TOKEN }}
139140
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
140141
working-directory: ${{ env.PRIMARY_MAVEN_MODULE }}
141142

142143
publish-pages:
143-
name: Publish dependencies and licenses to github pages
144144
runs-on: ubuntu-latest
145145
needs: [prepare_release]
146146
steps:
@@ -159,40 +159,15 @@ jobs:
159159
distribution: 'temurin'
160160
cache: 'maven'
161161

162-
- name: Build dependencies/licenses files
163-
run: mvn -B project-info-reports:dependencies
162+
- name: Build site
163+
run: ../mvnw -B site
164164
working-directory: ${{ env.PRIMARY_MAVEN_MODULE }}
165165

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

197172
after_release:
198173
runs-on: ubuntu-latest
@@ -208,12 +183,13 @@ jobs:
208183
209184
- name: Inc Version and SNAP
210185
run: |
186+
mvnwPath=$(readlink -f ./mvnw)
211187
modules=("") # root
212188
modules+=($(grep -ozP '(?<=module>)[^<]+' 'pom.xml' | tr -d '\0'))
213189
for i in "${modules[@]}"
214190
do
215191
echo "Processing $i/pom.xml"
216-
(cd "$i" && mvn -B build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion} -DgenerateBackupPoms=false -DnextSnapshot=true)
192+
(cd "$i" && $mvnwPath -B build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion} -DgenerateBackupPoms=false -DnextSnapshot=true)
217193
done
218194
219195
- 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)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ If you need support as soon as possible and you can't wait for any pull request,
4444
See the [contributing guide](./CONTRIBUTING.md) for detailed instructions on how to get started with our project.
4545

4646
## Dependencies and Licenses
47-
View the [license of the current project](LICENSE) or the [summary including all dependencies](https://xdev-software.github.io/vaadin-maps-leaflet-flow/dependencies/)
47+
View the [license of the current project](LICENSE) or the [summary including all dependencies](https://xdev-software.github.io/vaadin-maps-leaflet-flow/dependencies)

0 commit comments

Comments
 (0)