Skip to content

Conversation

@alarconesparza
Copy link
Contributor

@alarconesparza alarconesparza commented Jan 15, 2026

Description

Fixes internal b/470273769

Checklist

  • I have followed Sample Format Guide
  • pom.xml parent set to latest shared-configuration
  • Appropriate changes to README are included in PR
  • These samples need a new API enabled in testing projects to pass (let us know which ones)
  • These samples need a new/updated env vars in testing projects set to pass (let us know which ones)
  • Tests pass: mvn clean verify required
  • Lint passes: mvn -P lint checkstyle:check required
  • Static Analysis: mvn -P lint clean compile pmd:cpd-check spotbugs:check advisory only
  • This sample adds a new sample directory, and I updated the CODEOWNERS file with the codeowners for this sample
  • This sample adds a new Product API, and I updated the Blunderbuss issue/PR auto-assigner with the codeowners for this sample
  • Please merge this PR for me once it is approved

@product-auto-label product-auto-label bot added samples Issues that are directly related to samples. api: run Issues related to the Cloud Run API. labels Jan 15, 2026
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @alarconesparza, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request modernizes the Cloud Run helloworld Java sample by upgrading its core Java version to 25. This involves updating the Docker build and runtime images, adjusting Maven compiler settings, and refreshing key dependencies and build plugins like Spring Boot and Jib, while also integrating JaCoCo for code coverage. The changes ensure the sample leverages the latest Java features and ecosystem improvements.

Highlights

  • Java Version Upgrade: The Cloud Run helloworld sample has been upgraded to use Java 25, impacting both the build and runtime environments.
  • Dockerfile Updates: The Dockerfile now utilizes Eclipse Temurin 25 for both the Maven builder image and the base JRE image.
  • Maven Dependency and Plugin Updates: The pom.xml has been updated to reflect the new Java version, including bumping the shared-configuration parent version, upgrading Spring Boot to 3.5.9, and updating the Jib Maven plugin to 3.5.1.
  • Code Coverage Tooling: The JaCoCo Maven plugin (version 0.8.14) has been added to the pom.xml for code coverage analysis.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request upgrades the helloworld sample to Java 25 and updates several dependencies. However, the changes rely on Docker images and Maven artifacts that are not publicly available. This will cause the build to fail for anyone trying to use this sample. My review comments pinpoint each of these issues. For the sample to be buildable, all dependencies must be available in public repositories.

# Use the official maven image to create a build artifact.
# https://hub.docker.com/_/maven
FROM maven:3-eclipse-temurin-17-alpine as builder
FROM maven:3-eclipse-temurin-25-alpine as builder
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The Docker base image maven:3-eclipse-temurin-25-alpine does not appear to be publicly available on Docker Hub. This will cause the Docker build to fail. Please use a valid, existing image tag.

# Use Eclipse Temurin for base image.
# https://docs.docker.com/develop/develop-images/multistage-build/#use-multi-stage-builds
FROM eclipse-temurin:17.0.16_8-jre-alpine
FROM eclipse-temurin:25.0.1_8-jre-alpine
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The Docker base image eclipse-temurin:25.0.1_8-jre-alpine does not appear to be publicly available on Docker Hub. This will cause the Docker build to fail. Please use a valid, existing image tag.

<groupId>com.google.cloud.samples</groupId>
<artifactId>shared-configuration</artifactId>
<version>1.2.0</version>
<version>1.2.2</version>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The parent POM version 1.2.2 for com.google.cloud.samples:shared-configuration is not available in Maven Central (the latest public version is 1.2.0). Using a non-existent version will cause the build to fail.

<spring-boot.version>3.2.2</spring-boot.version>
<maven.compiler.target>25</maven.compiler.target>
<maven.compiler.source>25</maven.compiler.source>
<spring-boot.version>3.5.9</spring-boot.version>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The Spring Boot version 3.5.9 is not a public release and is not available in Maven Central. This will cause dependency resolution to fail during the build.

<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>3.4.0</version>
<version>3.5.1</version>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The jib-maven-plugin version 3.5.1 is not available in Maven Central, which will cause the build to fail. The latest public version is 3.4.3.

Suggested change
<version>3.5.1</version>
<version>3.4.3</version>

<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.14</version>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The jacoco-maven-plugin version 0.8.14 is not available in Maven Central, which will cause the build to fail. The latest public version is 0.8.12.

Suggested change
<version>0.8.14</version>
<version>0.8.12</version>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: run Issues related to the Cloud Run API. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant