Skip to content

Commit 5f67167

Browse files
chore: move GPG signing profile from slim-a2a to aggregator POM for Maven Central deployment
Signed-off-by: Janos Sarusi-Kis <janossk@cisco.com>
1 parent 0bb6b8e commit 5f67167

2 files changed

Lines changed: 39 additions & 37 deletions

File tree

pom.xml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,43 @@
139139
</plugin>
140140
</plugins>
141141
</build>
142+
143+
<profiles>
144+
<!-- GPG signing for Maven Central (activated when GPG_SIGNING_KEY env var is set).
145+
Declared here (not just on slim-a2a) because this aggregator POM is itself a
146+
deployed artifact and Central rejects any deployed file without a signature. -->
147+
<profile>
148+
<id>sign</id>
149+
<activation>
150+
<property>
151+
<name>env.GPG_SIGNING_KEY</name>
152+
</property>
153+
</activation>
154+
<build>
155+
<plugins>
156+
<plugin>
157+
<groupId>org.apache.maven.plugins</groupId>
158+
<artifactId>maven-gpg-plugin</artifactId>
159+
<version>3.2.4</version>
160+
<executions>
161+
<execution>
162+
<id>sign-artifacts</id>
163+
<phase>verify</phase>
164+
<goals>
165+
<goal>sign</goal>
166+
</goals>
167+
<configuration>
168+
<gpgArguments>
169+
<arg>--pinentry-mode</arg>
170+
<arg>loopback</arg>
171+
</gpgArguments>
172+
<passphrase>${env.GPG_PASSPHRASE}</passphrase>
173+
</configuration>
174+
</execution>
175+
</executions>
176+
</plugin>
177+
</plugins>
178+
</build>
179+
</profile>
180+
</profiles>
142181
</project>

slim-a2a/pom.xml

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -120,41 +120,4 @@
120120
</plugin>
121121
</plugins>
122122
</build>
123-
124-
<profiles>
125-
<!-- GPG signing for Maven Central (activated when GPG_SIGNING_KEY env var is set) -->
126-
<profile>
127-
<id>sign</id>
128-
<activation>
129-
<property>
130-
<name>env.GPG_SIGNING_KEY</name>
131-
</property>
132-
</activation>
133-
<build>
134-
<plugins>
135-
<plugin>
136-
<groupId>org.apache.maven.plugins</groupId>
137-
<artifactId>maven-gpg-plugin</artifactId>
138-
<version>3.2.4</version>
139-
<executions>
140-
<execution>
141-
<id>sign-artifacts</id>
142-
<phase>verify</phase>
143-
<goals>
144-
<goal>sign</goal>
145-
</goals>
146-
<configuration>
147-
<gpgArguments>
148-
<arg>--pinentry-mode</arg>
149-
<arg>loopback</arg>
150-
</gpgArguments>
151-
<passphrase>${env.GPG_PASSPHRASE}</passphrase>
152-
</configuration>
153-
</execution>
154-
</executions>
155-
</plugin>
156-
</plugins>
157-
</build>
158-
</profile>
159-
</profiles>
160123
</project>

0 commit comments

Comments
 (0)