Skip to content

Commit b0de18b

Browse files
committed
build(ci): Debug snapshot publish
- Debug snapshot publish
1 parent dc98cac commit b0de18b

File tree

3 files changed

+37
-13
lines changed

3 files changed

+37
-13
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,24 @@ jobs:
1717
with:
1818
distribution: 'zulu'
1919
java-version: '8'
20-
server-id: ossrh
21-
server-username: ${{ secrets.MAVEN_CENTRAL_USER }}
22-
server-password: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
20+
server-id: central
21+
server-username: MAVEN_USERNAME
22+
server-password: MAVEN_TOKEN
2323
gpg-private-key: ${{ secrets.MAVEN_CENTRAL_GPG_PRIVATE_KEY }}
24-
gpg-passphrase: ${{ secrets.MAVEN_CENTRAL_GPG_PASSPHRASE }}
24+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
2525

2626
- name: Configure Git user
2727
run: |
2828
git config user.email "actions@github.com"
2929
git config user.name "GitHub Actions"
3030
31+
- name: Build with Maven
32+
run: mvn -B package --file pom.xml
33+
3134
- name: Publish to Maven Central
3235
run: |
33-
./mvnw -B clean deploy -P release -DskipTests
36+
./mvnw -B clean deploy -Prelease -DskipTests
37+
env:
38+
MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USER }}
39+
MAVEN_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
40+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_CENTRAL_GPG_PASSPHRASE }}

.github/workflows/snapshot.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,15 @@ jobs:
2020
distribution: 'zulu'
2121
java-version: '8'
2222
server-id: central-portal-snapshots
23-
server-username: ${{ secrets.MAVEN_CENTRAL_USER }}
24-
server-password: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
23+
server-username: MAVEN_USERNAME
24+
server-password: MAVEN_TOKEN
25+
26+
- name: Build with Maven
27+
run: mvn -B package --file pom.xml
2528

2629
- name: Publish Snapshot to Maven Central
2730
run: |
2831
./mvnw -B clean deploy -DskipTests
32+
env:
33+
MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USER }}
34+
MAVEN_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}

pom.xml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
<plugin>
139139
<groupId>org.apache.maven.plugins</groupId>
140140
<artifactId>maven-compiler-plugin</artifactId>
141-
<version>3.13.0</version>
141+
<version>3.14.1</version>
142142
<configuration>
143143
<compilerVersion>1.8</compilerVersion>
144144
<fork>true</fork>
@@ -171,7 +171,7 @@
171171
<plugin>
172172
<groupId>org.apache.maven.plugins</groupId>
173173
<artifactId>maven-javadoc-plugin</artifactId>
174-
<version>3.11.2</version>
174+
<version>3.12.0</version>
175175
<configuration>
176176
<detectOfflineLinks>false</detectOfflineLinks>
177177
<breakiterator>true</breakiterator>
@@ -275,7 +275,7 @@
275275
<plugins>
276276
<plugin>
277277
<artifactId>maven-source-plugin</artifactId>
278-
<version>3.2.0</version>
278+
<version>3.3.1</version>
279279
<configuration>
280280
<archive>
281281
<manifestEntries>
@@ -307,7 +307,7 @@
307307
<plugin>
308308
<groupId>org.apache.maven.plugins</groupId>
309309
<artifactId>maven-javadoc-plugin</artifactId>
310-
<version>3.2.0</version>
310+
<version>3.12.0</version>
311311
<executions>
312312
<execution>
313313
<id>attach-javadocs</id>
@@ -320,7 +320,7 @@
320320
<plugin>
321321
<groupId>org.apache.maven.plugins</groupId>
322322
<artifactId>maven-gpg-plugin</artifactId>
323-
<version>1.6</version>
323+
<version>3.2.8</version>
324324
<executions>
325325
<execution>
326326
<id>sign-artifacts</id>
@@ -347,7 +347,7 @@
347347
<plugin>
348348
<groupId>org.apache.maven.plugins</groupId>
349349
<artifactId>maven-surefire-plugin</artifactId>
350-
<version>3.0.0-M5</version>
350+
<version>3.5.2</version>
351351
<configuration>
352352
<includes>
353353
<include>**/*TarantoolContainer*IT.java</include>
@@ -364,6 +364,17 @@
364364
</profile>
365365
</profiles>
366366

367+
<distributionManagement>
368+
<repository>
369+
<id>central</id>
370+
<url>https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/</url>
371+
</repository>
372+
<snapshotRepository>
373+
<id>central-portal-snapshots</id>
374+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
375+
</snapshotRepository>
376+
</distributionManagement>
377+
367378
<repositories>
368379
<repository>
369380
<name>Central Portal Snapshots</name>

0 commit comments

Comments
 (0)