Skip to content

Commit bea18f4

Browse files
committed
Merge remote-tracking branch 'origin/update-from-template' into develop
2 parents 8912dcc + 062dd73 commit bea18f4

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
@@ -118,20 +110,36 @@ 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: ../mvnw -B deploy -P publish -DskipTests -DaltDeploymentRepository=github-central::https://maven.pkg.github.com/xdev-software/central
126+
working-directory: ${{ env.PRIMARY_MAVEN_MODULE }}
127+
env:
128+
PACKAGES_CENTRAL_TOKEN: ${{ secrets.PACKAGES_CENTRAL_TOKEN }}
129+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
130+
122131
- name: Set up JDK
123132
uses: actions/setup-java@v4
124133
with: # running setup-java again overwrites the settings.xml
125-
java-version: '17'
126134
distribution: 'temurin'
135+
java-version: '17'
127136
server-id: sonatype-central-portal
128137
server-username: MAVEN_CENTRAL_USERNAME
129138
server-password: MAVEN_CENTRAL_TOKEN
130139
gpg-passphrase: MAVEN_GPG_PASSPHRASE
131-
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
132140

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

196196
- name: Git Commit and Push
197197
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/spring-data-eclipse-store-migration?logo=apache%20maven)](https://mvnrepository.com/artifact/software.xdev/spring-data-eclipse-store-migration)
22
[![Build](https://img.shields.io/github/actions/workflow/status/xdev-software/spring-data-eclipse-store-migration/check-build.yml?branch=develop)](https://github.com/xdev-software/spring-data-eclipse-store-migration/actions/workflows/check-build.yml?query=branch%3Adevelop)
3-
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=xdev-software_spring-data-eclipse-store-migration&metric=alert_status)](https://sonarcloud.io/dashboard?id=xdev-software_spring-data-eclipse-store-migration)
43

54
# spring-data-eclipse-store-migration
65

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<dependency>
4545
<groupId>com.puppycrawl.tools</groupId>
4646
<artifactId>checkstyle</artifactId>
47-
<version>10.26.0</version>
47+
<version>10.26.1</version>
4848
</dependency>
4949
</dependencies>
5050
<configuration>
@@ -81,12 +81,12 @@
8181
<dependency>
8282
<groupId>net.sourceforge.pmd</groupId>
8383
<artifactId>pmd-core</artifactId>
84-
<version>7.14.0</version>
84+
<version>7.15.0</version>
8585
</dependency>
8686
<dependency>
8787
<groupId>net.sourceforge.pmd</groupId>
8888
<artifactId>pmd-java</artifactId>
89-
<version>7.14.0</version>
89+
<version>7.15.0</version>
9090
</dependency>
9191
</dependencies>
9292
</plugin>

spring-data-eclipse-store-migration/pom.xml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
</build>
208208
<profiles>
209209
<profile>
210-
<id>publish-sonatype-central-portal</id>
210+
<id>publish</id>
211211
<build>
212212
<plugins>
213213
<plugin>
@@ -230,7 +230,7 @@
230230
<plugin>
231231
<groupId>org.apache.maven.plugins</groupId>
232232
<artifactId>maven-gpg-plugin</artifactId>
233-
<version>3.2.7</version>
233+
<version>3.2.8</version>
234234
<executions>
235235
<execution>
236236
<id>sign-artifacts</id>
@@ -249,7 +249,13 @@
249249
</execution>
250250
</executions>
251251
</plugin>
252-
252+
</plugins>
253+
</build>
254+
</profile>
255+
<profile>
256+
<id>publish-sonatype-central-portal</id>
257+
<build>
258+
<plugins>
253259
<plugin>
254260
<groupId>org.sonatype.central</groupId>
255261
<artifactId>central-publishing-maven-plugin</artifactId>
@@ -275,7 +281,7 @@
275281
<dependency>
276282
<groupId>com.puppycrawl.tools</groupId>
277283
<artifactId>checkstyle</artifactId>
278-
<version>10.26.0</version>
284+
<version>10.26.1</version>
279285
</dependency>
280286
</dependencies>
281287
<configuration>
@@ -312,12 +318,12 @@
312318
<dependency>
313319
<groupId>net.sourceforge.pmd</groupId>
314320
<artifactId>pmd-core</artifactId>
315-
<version>7.14.0</version>
321+
<version>7.15.0</version>
316322
</dependency>
317323
<dependency>
318324
<groupId>net.sourceforge.pmd</groupId>
319325
<artifactId>pmd-java</artifactId>
320-
<version>7.14.0</version>
326+
<version>7.15.0</version>
321327
</dependency>
322328
</dependencies>
323329
</plugin>

0 commit comments

Comments
 (0)