Skip to content

Commit 11edb99

Browse files
Add settings.xml for Sonatype authentication (Maven Central deployment)
1 parent f49e492 commit 11edb99

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ hs_err_pid*
3030
.project
3131
.settings/
3232
target/
33-
settings.xml
33+
# settings.xml

settings.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!--
2+
This configuration file is used for authentication when deploying artifacts
3+
to the Sonatype OSSRH repository (Maven Central). The environment variables
4+
SONATYPE_USERNAME and SONATYPE_TOKEN are passed via GitHub Secrets.
5+
-->
6+
7+
<settings>
8+
<servers>
9+
<server>
10+
<id>ossrh</id>
11+
<username>${env.SONATYPE_USERNAME}</username>
12+
<password>${env.SONATYPE_TOKEN}</password>
13+
</server>
14+
</servers>
15+
</settings>

0 commit comments

Comments
 (0)