Skip to content
This repository was archived by the owner on Feb 15, 2024. It is now read-only.

Commit 86dfcb1

Browse files
Creates MavenCentral Profile
- Moves current Maven Central distribution management to MavenCentral profile - Moves GPG Plugin to MavenCentral profile
1 parent 12d50e2 commit 86dfcb1

File tree

1 file changed

+38
-30
lines changed

1 file changed

+38
-30
lines changed

pom.xml

Lines changed: 38 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -139,36 +139,44 @@
139139
</execution>
140140
</executions>
141141
</plugin>
142-
<plugin>
143-
<groupId>org.apache.maven.plugins</groupId>
144-
<artifactId>maven-gpg-plugin</artifactId>
145-
<version>3.0.1</version>
146-
<configuration>
147-
<keyname>${gpg.keyname}</keyname>
148-
<passphraseServerId>${gpg.keyname}</passphraseServerId>
149-
</configuration>
150-
<executions>
151-
<execution>
152-
<id>sign-artifacts</id>
153-
<phase>verify</phase>
154-
<goals>
155-
<goal>sign</goal>
156-
</goals>
157-
</execution>
158-
</executions>
159-
</plugin>
160142
</plugins>
161143
</build>
162-
163-
<!-- Central Repository deployment configuration -->
164-
<distributionManagement>
165-
<snapshotRepository>
166-
<id>ossrh</id>
167-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
168-
</snapshotRepository>
169-
<repository>
170-
<id>ossrh</id>
171-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
172-
</repository>
173-
</distributionManagement>
144+
145+
<profiles>
146+
<profile>
147+
<id>MavenCentral</id>
148+
<distributionManagement>
149+
<snapshotRepository>
150+
<id>ossrh</id>
151+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
152+
</snapshotRepository>
153+
<repository>
154+
<id>ossrh</id>
155+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
156+
</repository>
157+
</distributionManagement>
158+
<build>
159+
<plugins>
160+
<plugin>
161+
<groupId>org.apache.maven.plugins</groupId>
162+
<artifactId>maven-gpg-plugin</artifactId>
163+
<version>3.0.1</version>
164+
<configuration>
165+
<keyname>${gpg.keyname}</keyname>
166+
<passphraseServerId>${gpg.keyname}</passphraseServerId>
167+
</configuration>
168+
<executions>
169+
<execution>
170+
<id>sign-artifacts</id>
171+
<phase>verify</phase>
172+
<goals>
173+
<goal>sign</goal>
174+
</goals>
175+
</execution>
176+
</executions>
177+
</plugin>
178+
</plugins>
179+
</build>
180+
</profile>
181+
</profiles>
174182
</project>

0 commit comments

Comments
 (0)