Skip to content

Commit

Permalink
Merge pull request #5 from adorsys/release-pom
Browse files Browse the repository at this point in the history
ci: update pom file for deployment to central maven repository
  • Loading branch information
Marcjazz authored May 7, 2024
2 parents 175cd72 + 5ad1276 commit 672fcc7
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 3 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/maven-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish package to the Maven Central Repository
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Maven Central Repository
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
server-id: sonatype
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Publish package
run: mvn --batch-mode deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
53 changes: 50 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,62 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.adorsys.ssi</groupId>
<groupId>de.adorsys.ssi</groupId>
<artifactId>sd-jwt</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>sd-jwt</name>
<url>http://maven.apache.org</url>
<name>${project.artifactId}</name>
<description>Library for the production, verification and consumption of SD-JWT documents</description>
<url>https://github.com/adorsys/sd-jwt</url>
<licenses>
<license>
<name>LGPL 2.1 - GNU Lesser General Public License, version 2.1</name>
<url>http://www.gnu.org/licenses/old-licenses/lgpl-2.1</url>
</license>
</licenses>

<developers>
<developer>
<name>Francis Pouatcha</name>
<email>[email protected]</email>
</developer>
<developer>
<name>Marco Kuidja</name>
<email>[email protected]</email>
</developer>
<developer>
<name>Dylane Bengono</name>
<email>[email protected]</email>
</developer>
<developer>
<name>Armand Meppa</name>
<email>[email protected]</email>
</developer>
</developers>

<scm>
<url>scm:git:[email protected]:adorsys/sd-jwt.git</url>
<connection>scm:git:[email protected]:adorsys/sd-jwt.git</connection>
<developerConnection>scm:git:[email protected]:adorsys/sd-jwt.git</developerConnection>
<tag>HEAD</tag>
</scm>

<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>

<distributionManagement>
<repository>
<id>sonatype</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
</repository>
<snapshotRepository>
<id>sonatype</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>

<dependencies>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
Expand All @@ -30,4 +76,5 @@
<scope>test</scope>
</dependency>
</dependencies>

</project>

0 comments on commit 672fcc7

Please sign in to comment.