Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Commit f3e4164

Browse files
committed
chore(INF-143): migrate deployment to central portal
1 parent 1093e4f commit f3e4164

4 files changed

Lines changed: 44 additions & 57 deletions

File tree

.github/workflows/continuous-delivery.yml

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ on:
1010

1111
jobs:
1212
build:
13-
1413
runs-on: ubuntu-latest
1514

1615
steps:
17-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1817

19-
- name: Bump version and push tag
18+
- name: Bump version and create tag
2019
id: semanticversion
21-
uses: hennejg/github-tag-action@v4.1.jh5
20+
uses: mathieudutour/github-tag-action@v6.2
2221
with:
2322
release_branches: master
2423
github_token: ${{ secrets.GITHUB_TOKEN }}
25-
24+
fetch_all_tags: true
25+
2626
- name: Verify and print new build number
2727
run: |
2828
if echo '${{ steps.semanticversion.outputs.new_tag }}' |grep -Eq '^v[0-9]+[.][0-9]+[.][0-9]+$'; then
@@ -32,21 +32,13 @@ jobs:
3232
exit -1
3333
fi
3434
35-
## Enable Caching
36-
- uses: actions/cache@v4
37-
with:
38-
path: ~/.m2/repository
39-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
40-
restore-keys: |
41-
${{ runner.os }}-maven-
42-
43-
## Configure JDK 11
4435
- name: Set up JDK 11
45-
uses: actions/setup-java@v1
36+
uses: actions/setup-java@v4
4637
with:
47-
java-version: 11
38+
java-version: '11'
39+
distribution: 'temurin'
40+
cache: 'maven'
4841

49-
## Build with maven
5042
- name: Prepare maven settings
5143
env:
5244
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -66,12 +58,12 @@ jobs:
6658
## Deploy
6759
- name: Deploy package
6860
env:
69-
GPG_EXECUTABLE: gpg
70-
GPG_SECRET_KEYS: ${{ secrets.LEVIGO_GPG_KEYS }}
71-
GPG_OWNERTRUST: ${{ secrets.LEVIGO_GPG_OWNERTRUST }}
72-
GPG_PASSPHRASE: ${{ secrets.LEVIGO_GPG_PASSPHRASE }}
73-
SONATYPE_USERNAME: ${{ secrets.LEVIGO_SONATYPE_USERNAME }}
74-
SONATYPE_PASSWORD: ${{ secrets.LEVIGO_SONATYPE_PASSWORD }}
61+
GPG_EXECUTABLE: gpg
62+
GPG_SECRET_KEYS: ${{ secrets.LEVIGO_GPG_KEYS }}
63+
GPG_OWNERTRUST: ${{ secrets.LEVIGO_GPG_OWNERTRUST }}
64+
GPG_PASSPHRASE: ${{ secrets.LEVIGO_GPG_PASSPHRASE }}
65+
SONATYPE_USERNAME: ${{ secrets.LEVIGO_SONATYPE_USERNAME }}
66+
SONATYPE_PASSWORD: ${{ secrets.LEVIGO_SONATYPE_PASSWORD }}
7567
run: |
7668
echo "$GPG_SECRET_KEYS" | base64 --decode | $GPG_EXECUTABLE --import --no-tty --batch --yes
7769
echo "$GPG_OWNERTRUST" | base64 --decode | $GPG_EXECUTABLE --import-ownertrust --no-tty --batch --yes
@@ -98,13 +90,15 @@ jobs:
9890
branch: master
9991
github_token: ${{ secrets.GITHUB_TOKEN }}
10092

101-
## Notify Slack
102-
- name: Notify slack
103-
uses: hennejg/slack-build-notifier@v1.1
93+
- name: Notify Developers
94+
uses: 8398a7/action-slack@v3
10495
with:
10596
username: GitHub
10697
icon_emoji: octocat
98+
channel: ci_project
99+
status: ${{ job.status }}
100+
fields: repo,message,commit,author,action,eventName,ref
107101
text: Released new version `${{ steps.semanticversion.outputs.new_version }}` of *${{ github.repository }}* to ${{ secrets.REPOSITORY_URL }}
108102
env:
109-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
110103
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
104+
if: always()

.github/workflows/continuous-integration.yml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,37 +10,30 @@ on:
1010

1111
jobs:
1212
build:
13-
1413
runs-on: ubuntu-latest
1514

1615
steps:
17-
- uses: actions/checkout@v1
18-
19-
## Enable Caching
20-
- uses: actions/cache@v4
21-
with:
22-
path: ~/.m2/repository
23-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
24-
restore-keys: |
25-
${{ runner.os }}-maven-
16+
- uses: actions/checkout@v4
2617

27-
## Configure JDK 11
2818
- name: Set up JDK 11
29-
uses: actions/setup-java@v1
19+
uses: actions/setup-java@v4
3020
with:
3121
java-version: 11
22+
distribution: 'temurin'
23+
cache: maven
3224

33-
## Build with maven
3425
- name: Perform build
3526
run: mvn verify
3627

37-
## Notify Slack
38-
- name: Notify slack
39-
uses: hennejg/slack-build-notifier@v1.1
28+
- name: Notify Developers
29+
uses: 8398a7/action-slack@v3
4030
with:
4131
username: GitHub
4232
icon_emoji: octocat
33+
channel: ci_project
34+
status: ${{ job.status }}
35+
fields: repo,message,commit,author,action,eventName,ref
36+
text: ${{ github.workflow }} ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
4337
env:
44-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4538
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
4639
if: always()

.maven.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
<servers>
66
<server>
77
<!-- Maven Central Deployment -->
8-
<id>ossrh</id>
8+
<id>central</id>
99
<username>${env.SONATYPE_USERNAME}</username>
1010
<password>${env.SONATYPE_PASSWORD}</password>
1111
</server>
1212
</servers>
1313

1414
<profiles>
15-
<!-- Profile for ossrh deployment -->
15+
<!-- Profile for central portal deployment -->
1616
<profile>
17-
<id>ossrh</id>
17+
<id>central</id>
1818
<activation>
1919
<activeByDefault>true</activeByDefault>
2020
</activation>

pom.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<licenses>
3131
<license>
3232
<name>BSD 3-Clause License</name>
33-
<url>http://opensource.org/licenses/BSD-3-Clause</url>
33+
<url>https://opensource.org/licenses/BSD-3-Clause</url>
3434
<distribution>repo</distribution>
3535
</license>
3636
</licenses>
@@ -39,7 +39,7 @@
3939
<developer>
4040
<name>Jörg Henne</name>
4141
<email>hennejg@gmail.com</email>
42-
<organizationUrl>http://levigo.de</organizationUrl>
42+
<organizationUrl>https://levigo.de</organizationUrl>
4343
</developer>
4444
</developers>
4545

@@ -57,7 +57,7 @@
5757
<plugin>
5858
<groupId>org.apache.maven.plugins</groupId>
5959
<artifactId>maven-surefire-plugin</artifactId>
60-
<version>2.17</version>
60+
<version>2.22.2</version>
6161
<configuration>
6262
<!-- see: https://stackoverflow.com/questions/53010200/maven-surefire-could-not-find-forkedbooter-class -->
6363
<argLine>-Xmx1024m -Xms1024m -XX:MaxPermSize=512m
@@ -74,7 +74,7 @@
7474
<dependency>
7575
<groupId>junit</groupId>
7676
<artifactId>junit</artifactId>
77-
<version>4.13.1</version>
77+
<version>4.13.2</version>
7878
<scope>test</scope>
7979
</dependency>
8080
<dependency>
@@ -100,14 +100,14 @@
100100
<plugins>
101101
<!-- To release to Maven central -->
102102
<plugin>
103-
<groupId>org.sonatype.plugins</groupId>
104-
<artifactId>nexus-staging-maven-plugin</artifactId>
105-
<version>1.6.8</version>
103+
<groupId>org.sonatype.central</groupId>
104+
<artifactId>central-publishing-maven-plugin</artifactId>
105+
<version>0.7.0</version>
106106
<extensions>true</extensions>
107107
<configuration>
108-
<serverId>ossrh</serverId>
109-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
110-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
108+
<publishingServerId>central</publishingServerId>
109+
<autoPublish>true</autoPublish>
110+
<waitUntil>uploaded</waitUntil>
111111
</configuration>
112112
</plugin>
113113

0 commit comments

Comments
 (0)