Skip to content

Commit

Permalink
Merge "ci: preparing Artifact Registry publishing" into main
Browse files Browse the repository at this point in the history
  • Loading branch information
suztomo authored and Gerrit Code Review committed Sep 24, 2024
2 parents a9cc473 + 4b7264d commit feb895e
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 23 deletions.
46 changes: 34 additions & 12 deletions app-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -370,18 +370,6 @@
</excludes>
</configuration>
</plugin>

<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>sonatype-nexus-staging</serverId>
<nexusUrl>https://google.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>false</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>

Expand All @@ -393,6 +381,31 @@
</properties>
</profile>

<profile>
<!-- Release to Sonatype (Maven Central) needs nexus-staging-maven-plugin but OSS Exit Gate
does not require nexus-staging-maven-plugin -->
<id>nexus-staging-plugin</id>
<activation>
<property>
<name>performRelease</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>sonatype-nexus-staging</serverId>
<nexusUrl>https://google.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>false</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>release</id>
<activation>
Expand Down Expand Up @@ -462,5 +475,14 @@
</repository>
</repositories>
</profile>
<profile>
<id>exitgate-artifact-registry-publishing</id>
<distributionManagement>
<repository>
<id>gcp-artifact-registry-maven-plugin-releases</id>
<url>artifactregistry://us-maven.pkg.dev/oss-exit-gate-dev/appengine-plugins--com-google-cloud-tools--mavencentral</url>
</repository>
</distributionManagement>
</profile>
</profiles>
</project>
46 changes: 35 additions & 11 deletions appengine-plugins-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -334,17 +334,6 @@
</compilerArgs>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>sonatype-nexus-staging</serverId>
<nexusUrl>https://google.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>false</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
</profile>
Expand Down Expand Up @@ -379,6 +368,32 @@
</plugins>
</build>
</profile>

<profile>
<!-- Release to Sonatype (Maven Central) needs nexus-staging-maven-plugin but OSS Exit Gate
does not require nexus-staging-maven-plugin -->
<id>nexus-staging-plugin</id>
<activation>
<property>
<name>performRelease</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>sonatype-nexus-staging</serverId>
<nexusUrl>https://google.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>false</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>release</id>
<activation>
Expand Down Expand Up @@ -576,5 +591,14 @@
</repository>
</repositories>
</profile>
<profile>
<id>exitgate-artifact-registry-publishing</id>
<distributionManagement>
<repository>
<id>gcp-artifact-registry-maven-plugin-releases</id>
<url>artifactregistry://us-maven.pkg.dev/oss-exit-gate-dev/appengine-plugins--com-google-cloud-tools--mavencentral</url>
</repository>
</distributionManagement>
</profile>
</profiles>
</project>

0 comments on commit feb895e

Please sign in to comment.