Skip to content

Commit 3778182

Browse files
committed
upgrade vertx
1 parent ca15cf9 commit 3778182

File tree

4 files changed

+145
-47
lines changed

4 files changed

+145
-47
lines changed

.github/workflows/deploy-1.yaml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#
2+
# Copyright © 2019 Dominokit
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
name: Deploy
18+
19+
on:
20+
push:
21+
branches: [ master , development, 1.x.x, 1.x.x-development ]
22+
23+
jobs:
24+
verify:
25+
runs-on: ubuntu-20.04
26+
strategy:
27+
matrix:
28+
java-version: [ 11 ]
29+
steps:
30+
- name: Check out Git repository
31+
uses: actions/checkout@v3
32+
- name: Install Java and Maven
33+
uses: actions/setup-java@v3
34+
with:
35+
java-version: ${{ matrix.java-version }}
36+
distribution: 'temurin'
37+
- run: ./mvnw verify -B -e
38+
39+
release:
40+
needs: verify
41+
runs-on: ubuntu-20.04
42+
steps:
43+
- name: Check out Git repository
44+
uses: actions/checkout@v3
45+
46+
- name: Install Java and Maven
47+
uses: actions/setup-java@v3
48+
with:
49+
java-version: 11
50+
distribution: 'temurin'
51+
server-id: ossrh
52+
server-username: SONATYPE_USERNAME
53+
server-password: SONATYPE_PASSWORD
54+
- id: install-secret-key
55+
name: Install gpg secret key
56+
run: |
57+
cat <(echo -e "${{ secrets.gpg_private_key }}") | gpg --batch --import
58+
- name: publish to snapshot
59+
run: ./mvnw --no-transfer-progress clean deploy -B -e -Dci=true -Dgpg.passphrase=${{ secrets.gpg_passphrase }}
60+
env:
61+
SONATYPE_USERNAME: ${{ secrets.nexus_username }}
62+
SONATYPE_PASSWORD: ${{ secrets.nexus_password }}

.github/workflows/deploy.yaml

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -18,45 +18,49 @@ name: Deploy
1818

1919
on:
2020
push:
21-
branches: [ master , development, 1.x.x, 1.x.x-development ]
21+
branches: [ 1.x.x, 1.x.x-development ]
2222

2323
jobs:
2424
verify:
25-
runs-on: ubuntu-20.04
26-
strategy:
27-
matrix:
28-
java-version: [ 11 ]
25+
runs-on: ubuntu-latest
2926
steps:
3027
- name: Check out Git repository
31-
uses: actions/checkout@v3
32-
- name: Install Java and Maven
33-
uses: actions/setup-java@v3
28+
uses: actions/checkout@v4
29+
30+
- name: Set up Java
31+
uses: actions/setup-java@v4
3432
with:
35-
java-version: ${{ matrix.java-version }}
36-
distribution: 'temurin'
37-
- run: ./mvnw verify -B -e
33+
java-version: 11
34+
distribution: temurin
35+
cache: maven
36+
37+
- name: Run Maven verify
38+
run: ./mvnw verify -B -e
3839

3940
release:
4041
needs: verify
41-
runs-on: ubuntu-20.04
42+
runs-on: ubuntu-latest
4243
steps:
4344
- name: Check out Git repository
44-
uses: actions/checkout@v3
45+
uses: actions/checkout@v4
4546

46-
- name: Install Java and Maven
47-
uses: actions/setup-java@v3
47+
- name: Set up Java for deployment
48+
uses: actions/setup-java@v4
4849
with:
4950
java-version: 11
50-
distribution: 'temurin'
51-
server-id: ossrh
52-
server-username: SONATYPE_USERNAME
53-
server-password: SONATYPE_PASSWORD
54-
- id: install-secret-key
55-
name: Install gpg secret key
51+
distribution: temurin
52+
cache: maven
53+
server-id: 'central'
54+
server-username: CENTRAL_USER
55+
server-password: CENTRAL_TOKEN
56+
- name: Import GPG key
5657
run: |
57-
cat <(echo -e "${{ secrets.gpg_private_key }}") | gpg --batch --import
58-
- name: publish to snapshot
58+
echo "${{ secrets.gpg_private_key }}" | gpg --batch --import
59+
env:
60+
GPG_TTY: $(tty)
61+
- name: Deploy with Maven
5962
run: ./mvnw --no-transfer-progress clean deploy -B -e -Dci=true -Dgpg.passphrase=${{ secrets.gpg_passphrase }}
6063
env:
61-
SONATYPE_USERNAME: ${{ secrets.nexus_username }}
62-
SONATYPE_PASSWORD: ${{ secrets.nexus_password }}
64+
CENTRAL_USER: ${{ secrets.CENTRAL_USER }}
65+
CENTRAL_TOKEN: ${{ secrets.CENTRAL_TOKEN }}
66+

.github/workflows/verify.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#
2+
# Copyright © ${year} Dominokit
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
name: Verify
18+
19+
on:
20+
pull_request:
21+
types: [assigned, opened, synchronize, reopened]
22+
23+
jobs:
24+
verify:
25+
runs-on: ubuntu-latest
26+
27+
steps:
28+
- name: Check out Git repository
29+
uses: actions/checkout@v4
30+
31+
- name: Set up Java and Maven
32+
uses: actions/setup-java@v4
33+
with:
34+
java-version: 11
35+
distribution: temurin
36+
37+
- name: Run Maven verify
38+
run: ./mvnw verify -B -e
39+

pom.xml

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,6 @@
6363
<url>https://github.com/DominoKit/domino-mvp</url>
6464
</scm>
6565

66-
<distributionManagement>
67-
<snapshotRepository>
68-
<id>ossrh</id>
69-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
70-
</snapshotRepository>
71-
</distributionManagement>
72-
7366
<inceptionYear>2019</inceptionYear>
7467

7568
<properties>
@@ -711,17 +704,6 @@
711704
</execution>
712705
</executions>
713706
</plugin>
714-
<plugin>
715-
<groupId>org.sonatype.plugins</groupId>
716-
<artifactId>nexus-staging-maven-plugin</artifactId>
717-
<version>${maven.nexus.staging.plugin}</version>
718-
<extensions>true</extensions>
719-
<configuration>
720-
<serverId>ossrh</serverId>
721-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
722-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
723-
</configuration>
724-
</plugin>
725707
<plugin>
726708
<groupId>org.apache.maven.plugins</groupId>
727709
<artifactId>maven-enforcer-plugin</artifactId>
@@ -740,6 +722,17 @@
740722
</execution>
741723
</executions>
742724
</plugin>
725+
<plugin>
726+
<groupId>org.sonatype.central</groupId>
727+
<artifactId>central-publishing-maven-plugin</artifactId>
728+
<version>0.8.0</version>
729+
<extensions>true</extensions>
730+
<configuration>
731+
<centralSnapshotsUrl>https://central.sonatype.com/repository/maven-snapshots/</centralSnapshotsUrl>
732+
<publishingServerId>central</publishingServerId>
733+
<autoPublish>true</autoPublish>
734+
</configuration>
735+
</plugin>
743736
</plugins>
744737
</pluginManagement>
745738
</build>
@@ -813,14 +806,14 @@
813806
<groupId>org.apache.maven.plugins</groupId>
814807
<artifactId>maven-gpg-plugin</artifactId>
815808
</plugin>
816-
<plugin>
817-
<groupId>org.sonatype.plugins</groupId>
818-
<artifactId>nexus-staging-maven-plugin</artifactId>
819-
</plugin>
820809
<plugin>
821810
<groupId>org.apache.maven.plugins</groupId>
822811
<artifactId>maven-enforcer-plugin</artifactId>
823812
</plugin>
813+
<plugin>
814+
<groupId>org.sonatype.central</groupId>
815+
<artifactId>central-publishing-maven-plugin</artifactId>
816+
</plugin>
824817
</plugins>
825818
</build>
826819
</profile>

0 commit comments

Comments
 (0)