Skip to content

Commit 00b34fa

Browse files
committed
fix: add deploy and signing config to standalone BOM (#1720)
The BOM has no parent so it doesn't inherit distributionManagement, nexus-staging-maven-plugin, or maven-gpg-plugin from the root POM. Without these the publish step would fail to stage and sign the artifact for Maven Central. Signed-off-by: Javier Aliaga <javier@aliaga.dev> Signed-off-by: Javier Aliaga <javier@diagrid.io>
1 parent bdf1dc7 commit 00b34fa

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

sdk-bom/pom.xml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,15 @@
3535
<tag>HEAD</tag>
3636
</scm>
3737

38+
<distributionManagement>
39+
<snapshotRepository>
40+
<id>ossrh</id>
41+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
42+
</snapshotRepository>
43+
</distributionManagement>
44+
3845
<properties>
46+
<gpg.skip>true</gpg.skip>
3947
<dapr.sdk.version>1.18.0-SNAPSHOT</dapr.sdk.version>
4048
<!-- TODO: Remove netty-bom override once gRPC ships with Netty >= 4.1.132 (CVE-2026-33871, CVE-2026-33870) -->
4149
<netty.version>4.1.132.Final</netty.version>
@@ -44,6 +52,43 @@
4452
<commons-compress.version>1.26.0</commons-compress.version>
4553
</properties>
4654

55+
<build>
56+
<plugins>
57+
<plugin>
58+
<groupId>org.sonatype.plugins</groupId>
59+
<artifactId>nexus-staging-maven-plugin</artifactId>
60+
<version>1.7.0</version>
61+
<extensions>true</extensions>
62+
<configuration>
63+
<serverId>ossrh</serverId>
64+
<nexusUrl>https://ossrh-staging-api.central.sonatype.com</nexusUrl>
65+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
66+
</configuration>
67+
</plugin>
68+
<plugin>
69+
<groupId>org.apache.maven.plugins</groupId>
70+
<artifactId>maven-gpg-plugin</artifactId>
71+
<version>3.1.0</version>
72+
<executions>
73+
<execution>
74+
<id>sign-artifacts</id>
75+
<phase>verify</phase>
76+
<goals>
77+
<goal>sign</goal>
78+
</goals>
79+
<configuration>
80+
<gpgArguments>
81+
<arg>--batch</arg>
82+
<arg>--pinentry-mode</arg>
83+
<arg>loopback</arg>
84+
</gpgArguments>
85+
</configuration>
86+
</execution>
87+
</executions>
88+
</plugin>
89+
</plugins>
90+
</build>
91+
4792
<dependencyManagement>
4893
<dependencies>
4994
<!-- ====================================================================== -->

0 commit comments

Comments
 (0)