Skip to content

Commit 078b4f1

Browse files
committed
Merge remote-tracking branch 'origin/update-from-template' into develop
2 parents 0a9471b + 062dd73 commit 078b4f1

File tree

8 files changed

+57
-115
lines changed

8 files changed

+57
-115
lines changed

.github/workflows/broken-links.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,7 @@ jobs:
6161
git config --global user.name "GitHub Actions"
6262
6363
- name: Un-SNAP
64-
run: |
65-
mvnwPath=$(readlink -f ./mvnw)
66-
modules=("") # root
67-
modules+=($(grep -oP '(?<=<module>)[^<]+' 'pom.xml'))
68-
for i in "${modules[@]}"
69-
do
70-
echo "Processing $i/pom.xml"
71-
(cd "$i" && $mvnwPath -B versions:set -DremoveSnapshot -DgenerateBackupPoms=false)
72-
done
64+
run: ./mvnw -B versions:set -DremoveSnapshot -DprocessAllModules -DgenerateBackupPoms=false
7365

7466
- name: Get version
7567
id: version
@@ -120,20 +112,36 @@ jobs:
120112
git config --global user.email "[email protected]"
121113
git config --global user.name "GitHub Actions"
122114
git pull
115+
116+
- name: Set up JDK
117+
uses: actions/setup-java@v4
118+
with: # running setup-java overwrites the settings.xml
119+
distribution: 'temurin'
120+
java-version: '17'
121+
server-id: github-central
122+
server-password: PACKAGES_CENTRAL_TOKEN
123+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
124+
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Only import once
123125

126+
- name: Publish to GitHub Packages Central
127+
run: ../mvnw -B deploy -P publish -DskipTests -DaltDeploymentRepository=github-central::https://maven.pkg.github.com/xdev-software/central
128+
working-directory: ${{ env.PRIMARY_MAVEN_MODULE }}
129+
env:
130+
PACKAGES_CENTRAL_TOKEN: ${{ secrets.PACKAGES_CENTRAL_TOKEN }}
131+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
132+
124133
- name: Set up JDK
125134
uses: actions/setup-java@v4
126135
with: # running setup-java again overwrites the settings.xml
127-
java-version: '17'
128136
distribution: 'temurin'
137+
java-version: '17'
129138
server-id: sonatype-central-portal
130139
server-username: MAVEN_CENTRAL_USERNAME
131140
server-password: MAVEN_CENTRAL_TOKEN
132141
gpg-passphrase: MAVEN_GPG_PASSPHRASE
133-
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
134142

135143
- name: Publish to Central Portal
136-
run: ../mvnw -B deploy -P publish-sonatype-central-portal -DskipTests
144+
run: ../mvnw -B deploy -P publish,publish-sonatype-central-portal -DskipTests
137145
env:
138146
MAVEN_CENTRAL_USERNAME: ${{ secrets.SONATYPE_MAVEN_CENTRAL_PORTAL_USERNAME }}
139147
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_MAVEN_CENTRAL_PORTAL_TOKEN }}
@@ -185,15 +193,7 @@ jobs:
185193
git pull
186194
187195
- name: Inc Version and SNAP
188-
run: |
189-
mvnwPath=$(readlink -f ./mvnw)
190-
modules=("") # root
191-
modules+=($(grep -oP '(?<=<module>)[^<]+' 'pom.xml'))
192-
for i in "${modules[@]}"
193-
do
194-
echo "Processing $i/pom.xml"
195-
(cd "$i" && $mvnwPath -B build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion} -DgenerateBackupPoms=false -DnextSnapshot=true -DupdateMatchingVersions=false)
196-
done
196+
run: ./mvnw -B versions:set -DnextSnapshot -DprocessAllModules -DgenerateBackupPoms=false
197197

198198
- name: Git Commit and Push
199199
run: |

.github/workflows/sonar.yml

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

.github/workflows/test-deploy.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,23 @@ jobs:
1212
timeout-minutes: 60
1313
steps:
1414
- uses: actions/checkout@v4
15+
16+
- name: Set up JDK
17+
uses: actions/setup-java@v4
18+
with: # running setup-java overwrites the settings.xml
19+
distribution: 'temurin'
20+
java-version: '17'
21+
server-id: github-central
22+
server-password: PACKAGES_CENTRAL_TOKEN
23+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
24+
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Only import once
25+
26+
- name: Publish to GitHub Packages Central
27+
run: ../mvnw -B deploy -P publish -DskipTests -DaltDeploymentRepository=github-central::https://maven.pkg.github.com/xdev-software/central
28+
working-directory: ${{ env.PRIMARY_MAVEN_MODULE }}
29+
env:
30+
PACKAGES_CENTRAL_TOKEN: ${{ secrets.PACKAGES_CENTRAL_TOKEN }}
31+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
1532

1633
- name: Set up JDK
1734
uses: actions/setup-java@v4
@@ -22,10 +39,9 @@ jobs:
2239
server-username: MAVEN_CENTRAL_USERNAME
2340
server-password: MAVEN_CENTRAL_TOKEN
2441
gpg-passphrase: MAVEN_GPG_PASSPHRASE
25-
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
2642

2743
- name: Publish to Central Portal
28-
run: ../mvnw -B deploy -P publish-sonatype-central-portal -DskipTests
44+
run: ../mvnw -B deploy -P publish,publish-sonatype-central-portal -DskipTests
2945
working-directory: ${{ env.PRIMARY_MAVEN_MODULE }}
3046
env:
3147
MAVEN_CENTRAL_USERNAME: ${{ secrets.SONATYPE_MAVEN_CENTRAL_PORTAL_USERNAME }}

.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.10/apache-maven-3.9.10-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

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[![Latest version](https://img.shields.io/maven-central/v/software.xdev/chartjs-java-model?logo=apache%20maven)](https://mvnrepository.com/artifact/software.xdev/chartjs-java-model)
22
[![Build](https://img.shields.io/github/actions/workflow/status/xdev-software/chartjs-java-model/check-build.yml?branch=develop)](https://github.com/xdev-software/chartjs-java-model/actions/workflows/check-build.yml?query=branch%3Adevelop)
3-
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=xdev-software_chartjs-java-model&metric=alert_status)](https://sonarcloud.io/dashboard?id=xdev-software_chartjs-java-model)
43
[![ChartJS Documentation](https://img.shields.io/badge/Chart.js-documentation-ff6384?logo=Chart.js)](https://www.chartjs.org/docs/latest/)
54

65
# <img src="https://www.chartjs.org/media/logo.svg" height="38" /> chartjs-java-model

chartjs-java-model/pom.xml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@
254254
</properties>
255255
</profile>
256256
<profile>
257-
<id>publish-sonatype-central-portal</id>
257+
<id>publish</id>
258258
<build>
259259
<plugins>
260260
<plugin>
@@ -277,7 +277,7 @@
277277
<plugin>
278278
<groupId>org.apache.maven.plugins</groupId>
279279
<artifactId>maven-gpg-plugin</artifactId>
280-
<version>3.2.7</version>
280+
<version>3.2.8</version>
281281
<executions>
282282
<execution>
283283
<id>sign-artifacts</id>
@@ -296,7 +296,13 @@
296296
</execution>
297297
</executions>
298298
</plugin>
299-
299+
</plugins>
300+
</build>
301+
</profile>
302+
<profile>
303+
<id>publish-sonatype-central-portal</id>
304+
<build>
305+
<plugins>
300306
<plugin>
301307
<groupId>org.sonatype.central</groupId>
302308
<artifactId>central-publishing-maven-plugin</artifactId>
@@ -322,7 +328,7 @@
322328
<dependency>
323329
<groupId>com.puppycrawl.tools</groupId>
324330
<artifactId>checkstyle</artifactId>
325-
<version>10.26.0</version>
331+
<version>10.26.1</version>
326332
</dependency>
327333
</dependencies>
328334
<configuration>
@@ -359,12 +365,12 @@
359365
<dependency>
360366
<groupId>net.sourceforge.pmd</groupId>
361367
<artifactId>pmd-core</artifactId>
362-
<version>7.14.0</version>
368+
<version>7.15.0</version>
363369
</dependency>
364370
<dependency>
365371
<groupId>net.sourceforge.pmd</groupId>
366372
<artifactId>pmd-java</artifactId>
367-
<version>7.14.0</version>
373+
<version>7.15.0</version>
368374
</dependency>
369375
</dependencies>
370376
</plugin>

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<dependency>
4646
<groupId>com.puppycrawl.tools</groupId>
4747
<artifactId>checkstyle</artifactId>
48-
<version>10.26.0</version>
48+
<version>10.26.1</version>
4949
</dependency>
5050
</dependencies>
5151
<configuration>
@@ -82,12 +82,12 @@
8282
<dependency>
8383
<groupId>net.sourceforge.pmd</groupId>
8484
<artifactId>pmd-core</artifactId>
85-
<version>7.14.0</version>
85+
<version>7.15.0</version>
8686
</dependency>
8787
<dependency>
8888
<groupId>net.sourceforge.pmd</groupId>
8989
<artifactId>pmd-java</artifactId>
90-
<version>7.14.0</version>
90+
<version>7.15.0</version>
9191
</dependency>
9292
</dependencies>
9393
</plugin>

0 commit comments

Comments
 (0)