Repository: googleapis/google-http-java-client
Pull request #2006 (2024-08-21 22:51:47)

build(deps): update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.6.0
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [org.codehaus.mojo:build-helper-maven-plugin](https://www.mojohaus.org/build-helper-maven-plugin/) ([source](https://redirect.github.com/mojohaus/build-helper-maven-plugin)) | `3.3.0` -> `3.6.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/org.codehaus.mojo:build-helper-maven-plugin/3.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.codehaus.mojo:build-helper-maven-plugin/3.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/org.codehaus.mojo:build-helper-maven-plugin/3.3.0/3.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.codehaus.mojo:build-helper-maven-plugin/3.3.0/3.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>mojohaus/build-helper-maven-plugin (org.codehaus.mojo:build-helper-maven-plugin)</summary>

### [`v3.6.0`](https://redirect.github.com/mojohaus/build-helper-maven-plugin/releases/tag/3.6.0)

[Compare Source](https://redirect.github.com/mojohaus/build-helper-maven-plugin/compare/3.5.0...3.6.0)

#### Changes

#### 🚀 New features and improvements

-   Deprecate remove-project-artifact goal ([#&#8203;205](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/205)) [@&#8203;slawekjaranowski](https://redirect.github.com/slawekjaranowski)
-   Parallel execution of uptodate-properties ([#&#8203;201](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/201)) [@&#8203;mkarg](https://redirect.github.com/mkarg)

#### 📦 Dependency updates

-   Bump org.codehaus.mojo:mojo-parent from 81 to 82 ([#&#8203;206](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/206)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump org.codehaus.mojo:mojo-parent from 78 to 81 ([#&#8203;204](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/204)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump org.codehaus.plexus:plexus-utils from 4.0.0 to 4.0.1 ([#&#8203;202](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/202)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump apache/maven-gh-actions-shared from 3 to 4 ([#&#8203;200](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/200)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump release-drafter/release-drafter from 5 to 6 ([#&#8203;195](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/195)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump org.codehaus.mojo:mojo-parent from 77 to 78 ([#&#8203;193](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/193)) [@&#8203;dependabot](https://redirect.github.com/dependabot)

#### 👻 Maintenance

-   Delete link to remove-project-artifact as is deprecated ([#&#8203;210](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/210)) [@&#8203;slawekjaranowski](https://redirect.github.com/slawekjaranowski)
-   Cleanups dependencies ([#&#8203;209](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/209)) [@&#8203;slawekjaranowski](https://redirect.github.com/slawekjaranowski)
-   Remove public modifiers from JUnit 5 tests ([#&#8203;208](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/208)) [@&#8203;slawekjaranowski](https://redirect.github.com/slawekjaranowski)
-   Delete example about remove-project-artifact as is deprecated ([#&#8203;207](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/207)) [@&#8203;slawekjaranowski](https://redirect.github.com/slawekjaranowski)
-   Fix goal in usage add-test-resource example ([#&#8203;199](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/199)) [@&#8203;mfussenegger](https://redirect.github.com/mfussenegger)

#### 🔧 Build

-   Use shared action for release drafter ([#&#8203;203](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/203)) [@&#8203;slawekjaranowski](https://redirect.github.com/slawekjaranowski)

### [`v3.5.0`](https://redirect.github.com/mojohaus/build-helper-maven-plugin/releases/tag/3.5.0)

[Compare Source](https://redirect.github.com/mojohaus/build-helper-maven-plugin/compare/3.4.0...3.5.0)

#### Changes

#### 🚀 New features and improvements

-   Add skipIfMissing flag ([#&#8203;187](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/187)) [@&#8203;hgschmie](https://redirect.github.com/hgschmie)
-   Add skip flags ([#&#8203;186](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/186)) [@&#8203;hgschmie](https://redirect.github.com/hgschmie)
-   Deprecate maven-version goal ([#&#8203;191](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/191)) [@&#8203;slawekjaranowski](https://redirect.github.com/slawekjaranowski)

#### 📦 Dependency updates

-   Bump org.codehaus.mojo:mojo-parent from 76 to 77 ([#&#8203;190](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/190)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump mojo-parent from 75 to 76 ([#&#8203;185](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/185)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump mojo-parent from 74 to 75 ([#&#8203;184](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/184)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump plexus-utils from 3.5.1 to 4.0.0 ([#&#8203;183](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/183)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump maven-plugin-annotations from 3.8.2 to 3.9.0 ([#&#8203;182](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/182)) [@&#8203;dependabot](https://redirect.github.com/dependabot)

#### 👻 Maintenance

-   Use plugins versions from parent in ITs ([#&#8203;192](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/192)) [@&#8203;slawekjaranowski](https://redirect.github.com/slawekjaranowski)
-   Use Maven Apache shared GitHub action ([#&#8203;189](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/189)) [@&#8203;slawekjaranowski](https://redirect.github.com/slawekjaranowski)
-   Fix antrun version in ITs ([#&#8203;188](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/188)) [@&#8203;slawekjaranowski](https://redirect.github.com/slawekjaranowski)
-   Bump mojo-parent from 75 to 76 ([#&#8203;185](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/185)) [@&#8203;dependabot](https://redirect.github.com/dependabot)

### [`v3.4.0`](https://redirect.github.com/mojohaus/build-helper-maven-plugin/releases/tag/3.4.0)

#### Changes

#### 🚀 New features and improvements

-   Get rid of ArtifactRepository - ${localRepository} ([#&#8203;179](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/179)) [@&#8203;slawekjaranowski](https://redirect.github.com/slawekjaranowski)
-   Added a property name to the "sources" parameter for CLI usage ([#&#8203;157](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/157)) [@&#8203;gjd6640](https://redirect.github.com/gjd6640)

#### 🐛 Bug Fixes

-   Use UTF-8 for the pom ([#&#8203;173](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/173)) [@&#8203;gnodet](https://redirect.github.com/gnodet)

#### 📦 Dependency updates

-   Bump maven-plugin-annotations from 3.8.1 to 3.8.2 ([#&#8203;177](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/177)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump parent from 72 to 74 ([#&#8203;175](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/175)) [@&#8203;slawekjaranowski](https://redirect.github.com/slawekjaranowski)
-   Bump maven-invoker-plugin to 3.5.1 - add support to run its with Java 20 ([#&#8203;172](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/172)) [@&#8203;slachiewicz](https://redirect.github.com/slachiewicz)
-   Bump actions/stale from 7 to 8 ([#&#8203;171](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/171)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump maven-plugin-annotations from 3.7.1 to 3.8.1 ([#&#8203;169](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/169)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump plexus-utils from 3.5.0 to 3.5.1 ([#&#8203;170](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/170)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump mojo-parent from 70 to 72 ([#&#8203;165](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/165)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump assertj-core from 3.24.1 to 3.24.2 ([#&#8203;164](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/164)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump maven-plugin-annotations from 3.7.0 to 3.7.1 ([#&#8203;163](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/163)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump assertj-core from 3.24.0 to 3.24.1 ([#&#8203;162](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/162)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump assertj-core from 3.23.1 to 3.24.0 ([#&#8203;161](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/161)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump actions/stale from 6 to 7 ([#&#8203;160](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/160)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump maven-plugin-annotations from 3.6.4 to 3.7.0 ([#&#8203;158](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/158)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump plexus-utils from 3.4.2 to 3.5.0 ([#&#8203;151](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/151)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump mojo-parent from 69 to 70 ([#&#8203;141](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/141)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump mojo-parent from 68 to 69 ([#&#8203;140](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/140)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump mojo-parent from 67 to 68 ([#&#8203;138](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/138)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump assertj-core from 3.22.0 to 3.23.1 ([#&#8203;137](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/137)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump plexus-utils from 3.4.1 to 3.4.2 ([#&#8203;135](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/135)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump actions/stale from 4 to 5 ([#&#8203;132](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/132)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump actions/setup-java from 2 to 3 ([#&#8203;133](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/133)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump mojo-parent from 65 to 67 ([#&#8203;130](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/130)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump actions/checkout from 2 to 3 ([#&#8203;128](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/128)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump maven-plugin-annotations from 3.6.2 to 3.6.4 ([#&#8203;126](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/126)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump release-drafter/release-drafter from 5.15.0 to 5.16.1 ([#&#8203;123](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/123)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump testng from 7.4.0 to 7.5 ([#&#8203;122](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/122)) [@&#8203;dependabot](https://redirect.github.com/dependabot)
-   Bump plexus-utils from 3.0.24 to 3.4.1 ([#&#8203;121](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/121)) [@&#8203;dependabot](https://redirect.github.com/dependabot)

#### 👻 Maintenance

-   Enable spotless for code formatting ([#&#8203;180](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/180)) [@&#8203;slawekjaranowski](https://redirect.github.com/slawekjaranowski)
-   Move tests to Junit 5 ([#&#8203;174](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/174)) [@&#8203;slachiewicz](https://redirect.github.com/slachiewicz)
-   Declare Maven Core dependencies as provided ([#&#8203;125](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/125)) [@&#8203;stefanseifert](https://redirect.github.com/stefanseifert)
-   Use only major version (v5) of release drafter ([#&#8203;124](https://redirect.github.com/mojohaus/build-helper-maven-plugin/pull/124)) [@&#8203;stefanseifert](https://redirect.github.com/stefanseifert)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/googleapis/google-http-java-client).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguOTcuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->


dpebot: /gcbrun
dpebot: /gcbrun
dpebot: /gcbrun

Patch:
diff --git a/.github/workflows/renovate_config_check.yaml b/.github/workflows/renovate_config_check.yaml
index 7c5ec786..36da117b 100644
--- a/.github/workflows/renovate_config_check.yaml
+++ b/.github/workflows/renovate_config_check.yaml
@@ -7,7 +7,7 @@ on:
 
 jobs:
   renovate_bot_config_validation:
-    runs-on: ubuntu-22.04
+    runs-on: ubuntu-24.04
 
     steps:
     - name: Checkout code
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index f153dddd..0181d530 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -32,7 +32,7 @@ jobs:
 
     steps:
       - name: "Checkout code"
-        uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
+        uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
         with:
           persist-credentials: false
 
diff --git a/google-http-client-apache-v5/pom.xml b/google-http-client-apache-v5/pom.xml
index ee57af11..83ecf477 100644
--- a/google-http-client-apache-v5/pom.xml
+++ b/google-http-client-apache-v5/pom.xml
@@ -29,7 +29,7 @@
       <plugin>
         <groupId>org.codehaus.mojo</groupId>
         <artifactId>build-helper-maven-plugin</artifactId>
-        <version>3.3.0</version>
+        <version>3.6.0</version>
         <executions>
           <execution>
             <id>add-test-source</id>
diff --git a/google-http-client-apache-v5/src/main/java/com/google/api/client/http/apache/v5/Apache5HttpResponse.java b/google-http-client-apache-v5/src/main/java/com/google/api/client/http/apache/v5/Apache5HttpResponse.java
index 1574c8c8..ae3c2ffb 100644
--- a/google-http-client-apache-v5/src/main/java/com/google/api/client/http/apache/v5/Apache5HttpResponse.java
+++ b/google-http-client-apache-v5/src/main/java/com/google/api/client/http/apache/v5/Apache5HttpResponse.java
@@ -46,7 +46,8 @@ final class Apache5HttpResponse extends LowLevelHttpResponse {
 
   @Override
   public InputStream getContent() throws IOException {
-    return new Apache5ResponseContent(entity.getContent(), response);
+    InputStream content = entity == null ? null : entity.getContent();
+    return new Apache5ResponseContent(content, response);
   }
 
   @Override
diff --git a/google-http-client-apache-v5/src/main/java/com/google/api/client/http/apache/v5/Apache5ResponseContent.java b/google-http-client-apache-v5/src/main/java/com/google/api/client/http/apache/v5/Apache5ResponseContent.java
index c2d3091d..dfb6da8a 100644
--- a/google-http-client-apache-v5/src/main/java/com/google/api/client/http/apache/v5/Apache5ResponseContent.java
+++ b/google-http-client-apache-v5/src/main/java/com/google/api/client/http/apache/v5/Apache5ResponseContent.java
@@ -59,8 +59,12 @@ public class Apache5ResponseContent extends InputStream {
 
   @Override
   public void close() throws IOException {
-    wrappedStream.close();
-    response.close();
+    if (wrappedStream != null) {
+      wrappedStream.close();
+    }
+    if (response != null) {
+      response.close();
+    }
   }
 
   @Override
diff --git a/google-http-client-bom/pom.xml b/google-http-client-bom/pom.xml
index 64100950..ed295bee 100644
--- a/google-http-client-bom/pom.xml
+++ b/google-http-client-bom/pom.xml
@@ -133,7 +133,7 @@
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-javadoc-plugin</artifactId>
-        <version>3.8.0</version>
+        <version>3.11.1</version>
         <configuration>
           <skip>true</skip>
         </configuration>
@@ -171,7 +171,7 @@
           <plugin>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-gpg-plugin</artifactId>
-            <version>3.2.5</version>
+            <version>3.2.7</version>
             <executions>
               <execution>
                 <id>sign-artifacts</id>
diff --git a/pom.xml b/pom.xml
index eb087eca..c17d4e08 100644
--- a/pom.xml
+++ b/pom.xml
@@ -93,7 +93,7 @@
   <parent>
     <groupId>com.google.cloud</groupId>
     <artifactId>native-image-shared-config</artifactId>
-    <version>1.11.3</version>
+    <version>1.12.0</version>
   </parent>
 
   <!--
@@ -138,7 +138,7 @@
       <dependency>
         <groupId>com.google.errorprone</groupId>
         <artifactId>error_prone_annotations</artifactId>
-        <version>2.30.0</version>
+        <version>2.36.0</version>
       </dependency>
       <dependency>
         <groupId>com.google.appengine</groupId>
@@ -258,7 +258,7 @@
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-context</artifactId>
-        <version>1.66.0</version>
+        <version>1.68.2</version>
       </dependency>
       <dependency>
         <groupId>io.opencensus</groupId>
@@ -330,7 +330,7 @@
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-javadoc-plugin</artifactId>
-          <version>3.8.0</version>
+          <version>3.11.1</version>
           <executions>
             <execution>
               <id>attach-javadocs</id>
@@ -363,7 +363,7 @@
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-checkstyle-plugin</artifactId>
-          <version>3.4.0</version>
+          <version>3.6.0</version>
         </plugin>
         <plugin>
           <groupId>org.codehaus.mojo</groupId>
@@ -610,11 +610,11 @@
       - Internally, update the default features.json file
     -->
     <project.http-client.version>1.45.1</project.http-client.version><!-- {x-version-update:google-http-client-parent:current} -->
-    <project.appengine.version>2.0.29</project.appengine.version>
+    <project.appengine.version>2.0.31</project.appengine.version>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <project.jsr305.version>3.0.2</project.jsr305.version>
     <project.gson.version>2.11.0</project.gson.version>
-    <project.jackson-core2.version>2.17.2</project.jackson-core2.version>
+    <project.jackson-core2.version>2.18.2</project.jackson-core2.version>
     <project.protobuf-java.version>3.21.12</project.protobuf-java.version>
     <project.guava.version>30.1.1-android</project.guava.version>
     <project.xpp3.version>1.1.4c</project.xpp3.version>
@@ -624,7 +624,7 @@
     <project.apache-httpcore-5.version>5.2.5</project.apache-httpcore-5.version>
     <project.opencensus.version>0.31.1</project.opencensus.version>
     <project.root-directory>..</project.root-directory>
-    <project.surefire.version>3.4.0</project.surefire.version>
+    <project.surefire.version>3.5.2</project.surefire.version>
     <deploy.autorelease>false</deploy.autorelease>
   </properties>
 
@@ -648,7 +648,7 @@
           <plugin>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-javadoc-plugin</artifactId>
-            <version>3.8.0</version>
+            <version>3.11.1</version>
             <configuration>
               <source>1.8</source>
               <failOnError>false</failOnError>
@@ -717,7 +717,7 @@
           <plugin>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-gpg-plugin</artifactId>
-            <version>3.2.5</version>
+            <version>3.2.7</version>
             <executions>
               <execution>
                 <id>sign-artifacts</id>
@@ -806,7 +806,7 @@
           <plugin>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-javadoc-plugin</artifactId>
-            <version>3.8.0</version>
+            <version>3.11.1</version>
             <configuration>
               <doclet>com.microsoft.doclet.DocFxDoclet</doclet>
               <useStandardDocletOptions>false</useStandardDocletOptions>
diff --git a/samples/dailymotion-simple-cmdline-sample/pom.xml b/samples/dailymotion-simple-cmdline-sample/pom.xml
index 1094cbe8..c1bc351b 100644
--- a/samples/dailymotion-simple-cmdline-sample/pom.xml
+++ b/samples/dailymotion-simple-cmdline-sample/pom.xml
@@ -15,7 +15,7 @@
       <plugin>
         <groupId>org.codehaus.mojo</groupId>
         <artifactId>exec-maven-plugin</artifactId>
-        <version>3.4.1</version>
+        <version>3.5.0</version>
         <executions>
           <execution>
             <goals>
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 9730678a..c50e894d 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -31,7 +31,7 @@
       <dependency>
         <groupId>com.google.cloud</groupId>
         <artifactId>libraries-bom</artifactId>
-        <version>26.44.0</version>
+        <version>26.51.0</version>
         <type>pom</type>
         <scope>import</scope>
       </dependency>


Test patch:
diff --git a/google-http-client-apache-v5/src/test/java/com/google/api/client/http/apache/v5/Apache5HttpResponseTest.java b/google-http-client-apache-v5/src/test/java/com/google/api/client/http/apache/v5/Apache5HttpResponseTest.java
new file mode 100644
index 00000000..d2712b35
--- /dev/null
+++ b/google-http-client-apache-v5/src/test/java/com/google/api/client/http/apache/v5/Apache5HttpResponseTest.java
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
+ * in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the License
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+ * or implied. See the License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+package com.google.api.client.http.apache.v5;
+
+import static org.junit.Assert.assertNotNull;
+
+import java.io.InputStream;
+import org.apache.hc.client5.http.classic.methods.HttpPost;
+import org.apache.hc.client5.http.classic.methods.HttpUriRequestBase;
+import org.junit.Test;
+
+public class Apache5HttpResponseTest {
+  @Test
+  public void testNullContent() throws Exception {
+    HttpUriRequestBase base = new HttpPost("http://www.google.com");
+    MockClassicHttpResponse mockResponse = new MockClassicHttpResponse();
+    mockResponse.setEntity(null);
+    Apache5HttpResponse response = new Apache5HttpResponse(base, mockResponse);
+
+    InputStream content = response.getContent();
+
+    assertNotNull(content);
+  }
+}
diff --git a/google-http-client-apache-v5/src/test/java/com/google/api/client/http/apache/v5/Apache5ResponseContentTest.java b/google-http-client-apache-v5/src/test/java/com/google/api/client/http/apache/v5/Apache5ResponseContentTest.java
new file mode 100644
index 00000000..ddbda0dd
--- /dev/null
+++ b/google-http-client-apache-v5/src/test/java/com/google/api/client/http/apache/v5/Apache5ResponseContentTest.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
+ * in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the License
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+ * or implied. See the License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+package com.google.api.client.http.apache.v5;
+
+import java.io.IOException;
+import java.io.InputStream;
+import org.junit.Test;
+
+public class Apache5ResponseContentTest {
+  @Test
+  public void testNullResponseContent_doesNotThrowExceptionOnClose() throws Exception {
+    Apache5ResponseContent response =
+        new Apache5ResponseContent(
+            new InputStream() {
+              @Override
+              public int read() throws IOException {
+                return 0;
+              }
+            },
+            null);
+
+    response.close();
+  }
+
+  @Test
+  public void testNullWrappedContent_doesNotThrowExceptionOnClose() throws Exception {
+    MockClassicHttpResponse mockResponse = new MockClassicHttpResponse();
+    Apache5ResponseContent response = new Apache5ResponseContent(null, mockResponse);
+
+    response.close();
+  }
+}