Skip to content

Commit

Permalink
fix: pinning commons-codec dependency in google-api-client (#2201)
Browse files Browse the repository at this point in the history
Turns out https://togithub.com/googleapis/google-api-java-client/pull/2195 only fixed half the issue. `commons-codec` needs to be declared as a dependency within the `google-api-client`'s `pom.xml` as well.
  • Loading branch information
alicejli committed Dec 2, 2022
1 parent 7cf3cc4 commit 27e94c0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions google-api-client/pom.xml
Expand Up @@ -104,6 +104,13 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<configuration>
<usedDependencies>commons-codec:commons-codec</usedDependencies>
</configuration>
</plugin>
</plugins>

<resources>
Expand All @@ -117,6 +124,13 @@
</resources>
</build>
<dependencies>
<dependency>
<!-- google-api-client itself does not touch commons-codec. Its
httpclient's dependency. For security advisories in commons-codec, it
declares a newer commons-codec than the one declared by httpclient. -->
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
</dependency>
<dependency>
<groupId>com.google.oauth-client</groupId>
<artifactId>google-oauth-client</artifactId>
Expand Down

0 comments on commit 27e94c0

Please sign in to comment.