Skip to content

Commit

Permalink
feat: Maven profile for Airlock
Browse files Browse the repository at this point in the history
b/356854847
  • Loading branch information
suztomo committed Nov 11, 2024
1 parent 2a3bd73 commit 10face6
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions java-shared-config/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,16 @@
</executions>
</plugin>
</plugins>
<extensions>
<extension>
<!-- Enables "artifactregistry://" URL scheme (go/airlock/howto_maven).
Extensions cannot be included in profiles (
https://maven.apache.org/guides/introduction/introduction-to-profiles.html#profiles-in-poms) -->
<groupId>com.google.cloud.artifactregistry</groupId>
<artifactId>artifactregistry-maven-wagon</artifactId>
<version>2.2.3</version>
</extension>
</extensions>
</build>

<reporting>
Expand Down Expand Up @@ -658,5 +668,36 @@
<maven.compiler.release>8</maven.compiler.release>
</properties>
</profile>
<profile>
<!-- Profile to use Airlock (go/airlock/howto_maven). Disabled by default. -->
<id>airlock-trusted</id>
<repositories>
<repository>
<id>airlock</id>
<name>Airlock</name>
<url>artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p-trusted</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>central</id>
<!-- Disable default Maven Central -->
<name>Maven Central remote repository</name>
<url>https://repo1.maven.org/maven2</url>
<layout>default</layout>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>
</project>

0 comments on commit 10face6

Please sign in to comment.