Skip to content

Commit

Permalink
👷 libs add maven central release to pom
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhir committed Oct 28, 2024
1 parent 195e1a3 commit 7739278
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions refarch-libs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,49 @@
<springdoc-openapi.version>2.6.0</springdoc-openapi.version>
</properties>

<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<!-- Central Portal Publishing Plugin -->
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>${central-publishing-maven-plugin.version}</version>
<extensions>true</extensions>
<configuration>
<autoPublish>true</autoPublish>
<deploymentName>${project.groupId}:${project.artifactId}:${project.version}</deploymentName>
</configuration>
</plugin>
<!-- GPG plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${maven-gpg-plugin.version}</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<!-- Prevent `gpg` from using pinentry programs -->
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<scm>
<url>https://github.com/it-at-m/refarch.git</url>
<connection>scm:git:https://github.com/it-at-m/refarch.git</connection>
Expand Down

0 comments on commit 7739278

Please sign in to comment.