Skip to content
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

Use Guava from Jenkins core #206

Merged
merged 1 commit into from
Dec 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 12 additions & 38 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@
<gitHubRepo>jenkinsci/google-oauth-plugin</gitHubRepo>
<jenkins.version>2.387.3</jenkins.version>
<hpi.compatibleSinceVersion>1.0.0</hpi.compatibleSinceVersion>
<!-- TODO: Update google versions when Jenkins core does not bundle guava 11. -->
<google.api.version>1.35.2</google.api.version>
<google.guava.version>32.1.2-jre</google.guava.version>
<oauth2.revision>151</oauth2.revision>
<google.http.version>1.21.0</google.http.version>
<spotbugs.effort>Max</spotbugs.effort>
Expand Down Expand Up @@ -127,34 +125,6 @@
<!-- XStream has deserialization warnings for Jodatime 2.0 or later -->
<version>2.12.5</version>
</dependency>
<!--
Use a newer version of Guava, since google-http-client needs at least v14, rather than v11 bundled with Jenkins.
However, this usage should be masked from other consumers via the maven-hpi-plugin configuration below.
The exact version being used is defined by the com.google.cloud:libraries-bom
-->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${google.guava.version}</version>
<exclusions>
<exclusion>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_annotations</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.j2objc</groupId>
<artifactId>j2objc-annotations</artifactId>
</exclusion>
<exclusion>
<groupId>org.checkerframework</groupId>
<artifactId>checker-compat-qual</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Test dependencies -->
<dependency>
<groupId>org.hamcrest</groupId>
Expand Down Expand Up @@ -198,6 +168,10 @@
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand Down Expand Up @@ -225,6 +199,10 @@
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- com.google.apis -->
Expand All @@ -249,6 +227,10 @@
<groupId>com.google.http-client</groupId>
<artifactId>google-http-client</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- plugin dependencies -->
Expand Down Expand Up @@ -282,14 +264,6 @@

<build>
<plugins>
<plugin>
<groupId>org.jenkins-ci.tools</groupId>
<artifactId>maven-hpi-plugin</artifactId>
<configuration>
<!-- Workaround from JENKINS-36779, since we need a custom version of Guava -->
<maskClasses>com.google.common.</maskClasses>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
Expand Down
Loading