Skip to content

Commit 7e46700

Browse files
committed
build: fixing maven central release
1 parent 7f4577b commit 7e46700

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/release.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
distribution: 'adopt'
2121
java-version: '15'
2222
check-latest: true
23+
server-id: ossrh
24+
server-username: MAVEN_USERNAME
25+
server-password: MAVEN_PASSWORD
2326
- id: install-secret-key
2427
name: Install gpg secret key
2528
run: |

scripts/templates/pom.mustache

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@
1919
</parent>
2020
{{/parentOverridden}}
2121

22-
<distributionManagement>
23-
<snapshotRepository>
24-
<id>ossrh</id>
25-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
26-
</snapshotRepository>
22+
<distributionManagement>
23+
<repository>
24+
<id>ossrh</id>
25+
<name>Central Repository OSSRH</name>
26+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
27+
</repository>
2728
</distributionManagement>
2829

2930

0 commit comments

Comments
 (0)