From da718898a1794eeca266ffa9df813b60aa6ea827 Mon Sep 17 00:00:00 2001 From: Jennifer Davis Date: Fri, 19 Dec 2025 01:09:14 -0800 Subject: [PATCH] feat(functions): upgrade to java25 runtime MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Compiler Compatibility: The maven.compiler.source and maven.compiler.target properties in pom.xml needed to be updated from 11 to 25. * Parent Configuration: The shared-configuration parent POM was updated to version 1.2.2 to align with newer Java runtime samples. * Plugin Updates: The jacoco-maven-plugin version 0.8.7 does not support Java 25 (major version 69). It was necessary to explicitly add version 0.8.14 to the pom.xml to resolve build failures during test coverage reporting. [INFO] ------------------------------------------------------- │ │ [INFO] T E S T S │ │ [INFO] ------------------------------------------------------- │ │ [INFO] Running functions.HelloWorldTest │ │ [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.807 s -- in functions.HelloWorldTest │ │ [INFO] │ │ [INFO] Results: │ │ [INFO] │ │ [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 │ │ [INFO] │ │ [INFO] ------------------------------------------------------------------------ │ │ [INFO] BUILD SUCCESS │ │ [INFO] ------------------------------------------------------------------------ │ │ [INFO] Total time: 9.410 s │ │ [INFO] Finished at: 2025-12-19T09:01:21Z │ │ [INFO] ------------------------------------------------------------------------ --- functions/helloworld/helloworld/pom.xml | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/functions/helloworld/helloworld/pom.xml b/functions/helloworld/helloworld/pom.xml index 6beba0255ca..444b9e20620 100644 --- a/functions/helloworld/helloworld/pom.xml +++ b/functions/helloworld/helloworld/pom.xml @@ -32,7 +32,7 @@ com.google.cloud.samples shared-configuration - 1.2.0 + 1.2.2 @@ -50,8 +50,8 @@ - 11 - 11 + 25 + 25 @@ -92,6 +92,25 @@ + + org.jacoco + jacoco-maven-plugin + 0.8.14 + + + + prepare-agent + + + + report + prepare-package + + report + + + +