-
Notifications
You must be signed in to change notification settings - Fork 724
ci: Airlock-friendly plugin dependency declarations #2565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
suztomo
wants to merge
1
commit into
googleapis:main
Choose a base branch
from
suztomo:airlock
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -471,44 +471,6 @@ | |
</plugins> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>clirr-maven-plugin</artifactId> | ||
<configuration> | ||
<comparisonVersion>1.27.0</comparisonVersion> | ||
<ignoredDifferencesFile>${basedir}/../clirr-ignored-differences.xml</ignoredDifferencesFile> | ||
<logResults>true</logResults> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>check</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>animal-sniffer-maven-plugin</artifactId> | ||
<configuration> | ||
<signature> | ||
<groupId>org.codehaus.mojo.signature</groupId> | ||
<artifactId>java17</artifactId> | ||
<version>1.0</version> | ||
</signature> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>check</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.sonatype.plugins</groupId> | ||
<artifactId>nexus-staging-maven-plugin</artifactId> | ||
</plugin> | ||
<plugin> | ||
<groupId>com.coveo</groupId> | ||
<artifactId>fmt-maven-plugin</artifactId> | ||
|
@@ -525,6 +487,11 @@ | |
</dependency> | ||
</dependencies> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.felix</groupId> | ||
<artifactId>maven-bundle-plugin</artifactId> | ||
<version>5.1.8</version> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<properties> | ||
|
@@ -555,6 +522,48 @@ | |
</properties> | ||
|
||
<profiles> | ||
<profile> | ||
<!-- By default, we release artifacts to Sonatype, which requires | ||
nexus-staging-maven-plugin. --> | ||
<id>release-sonatype</id> | ||
<activation> | ||
<property> | ||
<!-- Only when we use the release-gcp-artifact-registry profile, | ||
which comes with artifact-registry-url property, this profile is | ||
turned off. --> | ||
<name>!artifact-registry-url</name> | ||
</property> | ||
</activation> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.sonatype.plugins</groupId> | ||
<artifactId>nexus-staging-maven-plugin</artifactId> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
<profile> | ||
<!-- Optionally, we can publish the artifacts to GCP Artifact Registry specifying | ||
this release-gcp-artifact-registry profile: | ||
mvn deploy -P=release-gcp-artifact-registry -P=-release-sonatype \ | ||
-Dartifact-registry-url=artifactregistry://us-maven.pkg.dev/... | ||
--> | ||
<id>release-gcp-artifact-registry</id> | ||
<properties> | ||
<artifact-registry-url>artifactregistry://please-define-artifact-registry-url-property</artifact-registry-url> | ||
</properties> | ||
<distributionManagement> | ||
<repository> | ||
<id>gcp-artifact-registry-repository</id> | ||
<url>${artifact-registry-url}</url> | ||
</repository> | ||
<snapshotRepository> | ||
<id>gcp-artifact-registry-repository</id> | ||
<url>${artifact-registry-url}</url> | ||
</snapshotRepository> | ||
</distributionManagement> | ||
</profile> | ||
<profile> | ||
<id>release-sign-artifacts</id> | ||
<activation> | ||
|
@@ -589,6 +598,69 @@ | |
</build> | ||
</profile> | ||
|
||
<profile> | ||
<id>clirr-compatibility-check</id> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would it make sense to combine |
||
<!-- | ||
CLIRR Maven plugin's dependencies are quite old and not available | ||
in some build environment (Airlock). | ||
https://github.com/googleapis/java-shared-config/issues/956 | ||
Extracting this plugin declaration as a profile enables us to disable | ||
the CLIRR dependency resolution by `mvn -P=-clirr-compatibility-check ...` | ||
--> | ||
<activation> | ||
<!-- The compatibility check runs by default in CIs --> | ||
<jdk>[1.8,)</jdk> | ||
</activation> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>clirr-maven-plugin</artifactId> | ||
<configuration> | ||
<comparisonVersion>1.27.0</comparisonVersion> | ||
<ignoredDifferencesFile>${basedir}/../clirr-ignored-differences.xml</ignoredDifferencesFile> | ||
<logResults>true</logResults> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>check</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
<profile> | ||
<id>animal-sniffer</id> | ||
<activation> | ||
<!-- The compatibility check runs by default in CIs --> | ||
<jdk>[1.8,)</jdk> | ||
</activation> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>animal-sniffer-maven-plugin</artifactId> | ||
<configuration> | ||
<signature> | ||
<groupId>org.codehaus.mojo.signature</groupId> | ||
<artifactId>java17</artifactId> | ||
<version>1.0</version> | ||
</signature> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>check</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
<!-- set project.root-directory property based on where we are --> | ||
<profile> | ||
<id>root-directory</id> | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this already declared in the parent pom?