Skip to content

Commit

Permalink
fix github and maven publishing workflows (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
eemhu authored Jan 13, 2025
1 parent 653a150 commit 769f725
Showing 1 changed file with 153 additions and 0 deletions.
153 changes: 153 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,25 @@
<name>akv_01</name>
<description>Key Value Mapping for Microsoft Azure EventHub</description>
<url>https://teragrep.com</url>
<licenses>
<license>
<name>GNU Affero General Public License v3.0</name>
<url>https://github.com/teragrep/teragrep/blob/main/LICENSE</url>
</license>
</licenses>
<developers>
<developer>
<name>43</name>
<email>43@teragrep.com</email>
<organization>Teragrep</organization>
<organizationUrl>https://teragrep.com</organizationUrl>
</developer>
</developers>
<scm>
<connection>scm:git:https://github.com/teragrep/akv_01.git</connection>
<developerConnection>scm:git:git@github.com:teragrep/akv_01.git</developerConnection>
<url>https://github.com/teragrep/akv_01/tree/master</url>
</scm>
<properties>
<!-- indentation is intentionally broken -->
<changelist>-SNAPSHOT</changelist>
Expand Down Expand Up @@ -73,6 +92,60 @@
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.5.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<source>11</source>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.1.0</version>
<configuration>
<updatePomFile>true</updatePomFile>
<flattenMode>bom</flattenMode>
</configuration>
<executions>
<execution>
<id>flatten.clean</id>
<goals>
<goal>clean</goal>
</goals>
<phase>clean</phase>
</execution>
<execution>
<id>flatten</id>
<goals>
<goal>flatten</goal>
</goals>
<phase>process-resources</phase>
</execution>
</executions>
</plugin>
<!-- mandatory plugin: enforcer -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -202,6 +275,7 @@
<exclude>settings.xml</exclude>
<!-- maven -->
<exclude>pom.xml</exclude>
<exclude>.flattened-pom.xml</exclude>
<exclude>eclipse-java-formatter.xml</exclude>
<!-- readme -->
<exclude>README.adoc</exclude>
Expand Down Expand Up @@ -434,4 +508,83 @@
</plugin>
</plugins>
</build>
<profiles>
<!-- Required when publishing to Maven Central -->
<profile>
<id>publish-maven-central</id>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.5.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central-sonatype-org</publishingServerId>
<tokenAuth>true</tokenAuth>
<autoPublish>true</autoPublish>
<waitUntil>validated</waitUntil>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<goals>
<goal>sign</goal>
</goals>
<phase>verify</phase>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!-- /Required when publishing to Maven Central -->
<!-- Required when publishing to GitHub Packages -->
<profile>
<id>publish-github-packages</id>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/teragrep/akv_01</url>
</repository>
</distributionManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<goals>
<goal>sign</goal>
</goals>
<phase>verify</phase>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!-- Required when publishing to GitHub Packages -->
</profiles>
</project>

0 comments on commit 769f725

Please sign in to comment.