Skip to content

Commit 155813d

Browse files
committed
Add the release profile to the pom.
Signed-off-by: Hiram Chirino <hiram@hiramchirino.com>
1 parent c6765c5 commit 155813d

File tree

1 file changed

+72
-25
lines changed

1 file changed

+72
-25
lines changed

pom.xml

Lines changed: 72 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@
193193
</dependency>
194194
</dependencies>
195195
</plugin>
196-
197196
<plugin>
198197
<groupId>org.apache.maven.plugins</groupId>
199198
<artifactId>maven-compiler-plugin</artifactId>
@@ -205,32 +204,80 @@
205204
<annotationProcessorPathsUseDepMgmt>true</annotationProcessorPathsUseDepMgmt>
206205
</configuration>
207206
</plugin>
208-
209-
<plugin>
210-
<groupId>org.apache.maven.plugins</groupId>
211-
<artifactId>maven-javadoc-plugin</artifactId>
212-
<version>${maven-javadoc-plugin.version}</version>
213-
<configuration>
214-
<doclint>all</doclint>
215-
<source>11</source>
216-
<release>${maven.compiler.release}</release>
217-
<sourceFileExcludes>
218-
<sourceFileExclude>**/internal/**</sourceFileExclude>
219-
</sourceFileExcludes>
220-
</configuration>
221-
<executions>
222-
<execution>
223-
<id>attach-javadocs</id>
224-
<goals>
225-
<goal>jar</goal>
226-
</goals>
227-
</execution>
228-
</executions>
229-
</plugin>
230-
231207
</plugins>
232-
233208
</pluginManagement>
234209
</build>
235210

211+
<profiles>
212+
<profile>
213+
<id>release</id>
214+
<build>
215+
<pluginManagement>
216+
<plugins>
217+
<plugin>
218+
<groupId>org.apache.maven.plugins</groupId>
219+
<artifactId>maven-javadoc-plugin</artifactId>
220+
<version>${maven-javadoc-plugin.version}</version>
221+
<configuration>
222+
<doclint>all</doclint>
223+
<source>11</source>
224+
<release>${maven.compiler.release}</release>
225+
<sourceFileExcludes>
226+
<sourceFileExclude>**/internal/**</sourceFileExclude>
227+
</sourceFileExcludes>
228+
</configuration>
229+
<executions>
230+
<execution>
231+
<id>attach-javadocs</id>
232+
<goals>
233+
<goal>jar</goal>
234+
</goals>
235+
</execution>
236+
</executions>
237+
</plugin>
238+
</plugins>
239+
</pluginManagement>
240+
<plugins>
241+
<plugin>
242+
<groupId>org.apache.maven.plugins</groupId>
243+
<artifactId>maven-gpg-plugin</artifactId>
244+
<version>3.2.7</version>
245+
<executions>
246+
<execution>
247+
<id>sign-artifacts</id>
248+
<goals>
249+
<goal>sign</goal>
250+
</goals>
251+
<phase>verify</phase>
252+
</execution>
253+
</executions>
254+
</plugin>
255+
<plugin>
256+
<groupId>org.apache.maven.plugins</groupId>
257+
<artifactId>maven-source-plugin</artifactId>
258+
<version>3.3.1</version>
259+
<executions>
260+
<execution>
261+
<id>attach-sources</id>
262+
<goals>
263+
<goal>jar-no-fork</goal>
264+
</goals>
265+
</execution>
266+
</executions>
267+
</plugin>
268+
<plugin>
269+
<groupId>org.sonatype.central</groupId>
270+
<artifactId>central-publishing-maven-plugin</artifactId>
271+
<version>0.7.0</version>
272+
<extensions>true</extensions>
273+
<configuration>
274+
<publishingServerId>central</publishingServerId>
275+
<autoPublish>true</autoPublish>
276+
<waitUntil>published</waitUntil>
277+
</configuration>
278+
</plugin>
279+
</plugins>
280+
</build>
281+
</profile>
282+
</profiles>
236283
</project>

0 commit comments

Comments
 (0)