File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 279279 </plugins >
280280 </build >
281281 <profiles >
282-
282+ <profile >
283+ <!-- profile for nexus-staging:release invocation -->
284+ <id >release-staging-repository</id >
285+ <activation >
286+ <property >
287+ <!-- The root project not using nexus-staging-maven-plugin when signing -->
288+ <name >!gpg.executable</name >
289+ </property >
290+ </activation >
291+ <distributionManagement >
292+ <snapshotRepository >
293+ <id >sonatype-nexus-snapshots</id >
294+ <url >https://google.oss.sonatype.org/content/repositories/snapshots</url >
295+ </snapshotRepository >
296+ <repository >
297+ <id >sonatype-nexus-staging</id >
298+ <url >https://google.oss.sonatype.org/service/local/staging/deploy/maven2/</url >
299+ </repository >
300+ </distributionManagement >
301+ <build >
302+ <plugins >
303+ <plugin >
304+ <!-- The root project runs nexus-staging:release task -->
305+ <groupId >org.sonatype.plugins</groupId >
306+ <artifactId >nexus-staging-maven-plugin</artifactId >
307+ <version >1.7.0</version >
308+ <extensions >true</extensions >
309+ <configuration >
310+ <serverId >sonatype-nexus-staging</serverId >
311+ <nexusUrl >https://google.oss.sonatype.org/</nexusUrl >
312+ <autoReleaseAfterClose >false</autoReleaseAfterClose >
313+ </configuration >
314+ </plugin >
315+ </plugins >
316+ </build >
317+ </profile >
318+ <profile >
319+ <id >release-non-google-oss-sonatype</id >
320+ <build >
321+ <plugins >
322+ <plugin >
323+ <groupId >org.sonatype.plugins</groupId >
324+ <artifactId >nexus-staging-maven-plugin</artifactId >
325+ <configuration >
326+ <serverId >ossrh</serverId >
327+ <nexusUrl >https://oss.sonatype.org/</nexusUrl >
328+ </configuration >
329+ </plugin >
330+ </plugins >
331+ </build >
332+ </profile >
283333 </profiles >
284334</project >
You can’t perform that action at this time.
0 commit comments