Skip to content

Commit

Permalink
fix: Add signing (#21)
Browse files Browse the repository at this point in the history
* chore: Preparations for Maven Central deployment

* fix: Add signing
  • Loading branch information
sverrehu authored Oct 7, 2023
1 parent 6e3b8d9 commit eb63be2
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ jobs:
with:
java-version: "17"
distribution: "temurin"
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
cache: maven
- name: Publish package
run: ./bin/deploy-multi.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
66 changes: 66 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,30 @@
<version>0.1.2-SNAPSHOT</version>
<packaging>jar</packaging>

<name>${project.groupId}:${project.artifactId}</name>
<description>Embedding a Kafka Server in the running VM to aid in testing Kafka clients.</description>
<url>https://github.com/sverrehu/k3a-embedded</url>

<licenses>
<license>
<name>MIT License</name>
<url>https://opensource.org/license/mit/</url>
</license>
</licenses>

<developers>
<developer>
<name>Sverre H. Huseby</name>
<email>shh@thathost.com</email>
</developer>
</developers>

<scm>
<connection>scm:git:git://github.com/sverrehu/k3a-embedded.git</connection>
<developerConnection>scm:git:ssh://github.com:sverrehu/k3a-embedded.git</developerConnection>
<url>https://github.com/sverrehu/k3a-embedded/tree/main</url>
</scm>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<kafka.version>3.6.0</kafka.version>
Expand Down Expand Up @@ -70,6 +94,48 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>3.1.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.6.0</version>
<executions>
<execution>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<keyname>${gpg.keyname}</keyname>
<passphrase>${gpg.passphrase}</passphrase>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit eb63be2

Please sign in to comment.