Skip to content

Commit da71889

Browse files
authored
feat(functions): upgrade to java25 runtime
* 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] ------------------------------------------------------------------------
1 parent 3ec8dfb commit da71889

1 file changed

Lines changed: 22 additions & 3 deletions

File tree

  • functions/helloworld/helloworld

functions/helloworld/helloworld/pom.xml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<parent>
3333
<groupId>com.google.cloud.samples</groupId>
3434
<artifactId>shared-configuration</artifactId>
35-
<version>1.2.0</version>
35+
<version>1.2.2</version>
3636
</parent>
3737

3838
<dependencyManagement>
@@ -50,8 +50,8 @@
5050
<!-- [START functions_example_pom] -->
5151
<!-- [START functions_example_pom_dependencies] -->
5252
<properties>
53-
<maven.compiler.target>11</maven.compiler.target>
54-
<maven.compiler.source>11</maven.compiler.source>
53+
<maven.compiler.target>25</maven.compiler.target>
54+
<maven.compiler.source>25</maven.compiler.source>
5555
</properties>
5656

5757
<dependencies>
@@ -92,6 +92,25 @@
9292

9393
<build>
9494
<plugins>
95+
<plugin>
96+
<groupId>org.jacoco</groupId>
97+
<artifactId>jacoco-maven-plugin</artifactId>
98+
<version>0.8.14</version>
99+
<executions>
100+
<execution>
101+
<goals>
102+
<goal>prepare-agent</goal>
103+
</goals>
104+
</execution>
105+
<execution>
106+
<id>report</id>
107+
<phase>prepare-package</phase>
108+
<goals>
109+
<goal>report</goal>
110+
</goals>
111+
</execution>
112+
</executions>
113+
</plugin>
95114
<!-- [START functions_maven_specify_function] -->
96115
<plugin>
97116
<!-- [END functions_maven_specify_function] -->

0 commit comments

Comments
 (0)