Skip to content

Remove java debian12 builds#2023

Merged
loosebazooka merged 1 commit intomainfrom
byebyejava12
Feb 27, 2026
Merged

Remove java debian12 builds#2023
loosebazooka merged 1 commit intomainfrom
byebyejava12

Conversation

@loosebazooka
Copy link
Member

No description provided.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, 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 performs a significant cleanup by removing all infrastructure and references related to Java builds on Debian 12. The changes consolidate Java image generation to Debian 13, simplifying the build system and reducing the overall codebase complexity. This strategic shift ensures that development efforts are concentrated on the latest supported Debian release for Java environments.

Highlights

  • Deprecation of Debian 12 Java Builds: All configurations, build rules, and associated files for Java images based on Debian 12 have been systematically removed from the project.
  • Transition to Debian 13 for Java: The project now exclusively focuses on building Java images for Debian 13, streamlining the build process and reducing maintenance for older distributions.
  • Refactored Java Repository Management: The mechanism for fetching Java distributions has been simplified, moving away from GitHub releases for Temurin and towards Adoptium DEB repositories, removing the custom java.bzl extension and related module files.
  • Updated Documentation and Examples: The README.md and Java example configurations have been updated to reflect the removal of Debian 12 Java images and the new focus on Debian 13.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • MODULE.bazel
    • Removed the inclusion of the Java Temurin module.
  • MODULE.bazel.lock
    • Eliminated all locked entries related to Java Temurin for Debian 12.
    • Removed the bookworm_java.lock.json reference from recorded file inputs.
  • README.md
    • Removed Java-specific entries from the list of supported Debian 12 images.
    • Adjusted an example to reference Debian 13 Java images.
  • common/BUILD.bazel
    • Refactored architecture definitions to be distro-specific.
    • Updated rules for cacerts and libc-bin to use the new distro-specific architecture structure.
  • examples/java/BUILD
    • Migrated Java example builds from Debian 12 to Debian 13.
  • examples/java/Dockerfile
    • Updated the base image for Java examples from Debian 12 to Debian 13.
  • examples/java/testdata/hello_nonroot_debian12.yaml
    • Renamed to examples/java/testdata/hello_nonroot_debian13.yaml.
  • examples/java/testdata/hello_root_debian12.yaml
    • Renamed to examples/java/testdata/hello_root_debian13.yaml.
  • java/BUILD
    • Removed deprecated Java build base images and GitHub release-based Temurin images for Debian 12.
    • Consolidated Java image creation to Debian 13 using Adoptium DEBs.
    • Updated java_image_index to only use ADOPTIUM_DEB_PER_DISTRO.
  • java/README.md
    • Revised documentation for adding new Java versions, reflecting the shift from GitHub releases to Adoptium DEBs and the exclusive focus on Debian 13.
  • java/config.bzl
    • Removed all Debian 12 specific configurations for Java distributions, architectures, major versions, and package lists.
  • java/java.bzl
    • Removed deprecated functions and repository rules related to Debian 12 Java builds and GitHub release-based Temurin archives.
    • Updated import and usage of java_image to oci_java_image.
  • java/testdata/java17_debian12.yaml
    • Removed.
  • java/testdata/java17_debug_debian12.yaml
    • Removed.
  • java/testdata/java21_debian12.yaml
    • Removed.
  • java/testdata/java21_debug_debian12.yaml
    • Removed.
  • knife
    • Removed commands and scripts related to updating Java archives from GitHub releases and Debian 12 Java versions.
  • knife.d/update_java_archives.sh
    • Removed.
  • knife.d/update_java_versions.sh
    • Removed the function for updating Debian 12 Java versions.
  • private/extensions/java.bzl
    • Removed the entire file, which contained the temurin_archive and version_repo repository rules for fetching Java from GitHub releases.
  • private/repos/deb/bookworm_java.lock.json
    • Removed.
  • private/repos/deb/bookworm_java.yaml
    • Removed.
  • private/repos/deb/deb.MODULE.bazel
    • Removed the bookworm_java repository.
  • private/repos/java_temurin/java.MODULE.bazel
    • Removed.
  • private/repos/java_temurin/java_21.MODULE.bazel
    • Removed.
Activity
  • The pull request was created by loosebazooka.
  • The changes involve a comprehensive removal of Java Debian 12 build configurations and related files across multiple modules and scripts.
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.

Signed-off-by: Appu Goundan <appu@google.com>
@github-actions
Copy link
Contributor

🌳 🔧 Config Check

This pull request has modified the root BUILD

--- /dev/fd/63	2026-02-27 17:25:04.992053025 +0000
+++ /dev/fd/62	2026-02-27 17:25:04.992053025 +0000
@@ -238,26 +238,6 @@
 {REGISTRY}/{PROJECT_ID}/cc:nonroot-ppc64le //cc:cc_nonroot_ppc64le_debian13
 {REGISTRY}/{PROJECT_ID}/cc:nonroot-riscv64 //cc:cc_nonroot_riscv64_debian13
 {REGISTRY}/{PROJECT_ID}/cc:nonroot-s390x //cc:cc_nonroot_s390x_debian13
-{REGISTRY}/{PROJECT_ID}/java-base-debian12:debug //java:java_base_debug_root_debian12
-{REGISTRY}/{PROJECT_ID}/java-base-debian12:debug-amd64 //java:java_base_debug_root_amd64_debian12
-{REGISTRY}/{PROJECT_ID}/java-base-debian12:debug-arm64 //java:java_base_debug_root_arm64_debian12
-{REGISTRY}/{PROJECT_ID}/java-base-debian12:debug-nonroot //java:java_base_debug_nonroot_debian12
-{REGISTRY}/{PROJECT_ID}/java-base-debian12:debug-nonroot-amd64 //java:java_base_debug_nonroot_amd64_debian12
-{REGISTRY}/{PROJECT_ID}/java-base-debian12:debug-nonroot-arm64 //java:java_base_debug_nonroot_arm64_debian12
-{REGISTRY}/{PROJECT_ID}/java-base-debian12:debug-nonroot-ppc64le //java:java_base_debug_nonroot_ppc64le_debian12
-{REGISTRY}/{PROJECT_ID}/java-base-debian12:debug-nonroot-s390x //java:java_base_debug_nonroot_s390x_debian12
-{REGISTRY}/{PROJECT_ID}/java-base-debian12:debug-ppc64le //java:java_base_debug_root_ppc64le_debian12
-{REGISTRY}/{PROJECT_ID}/java-base-debian12:debug-s390x //java:java_base_debug_root_s390x_debian12
-{REGISTRY}/{PROJECT_ID}/java-base-debian12:latest //java:java_base_root_debian12
-{REGISTRY}/{PROJECT_ID}/java-base-debian12:latest-amd64 //java:java_base_root_amd64_debian12
-{REGISTRY}/{PROJECT_ID}/java-base-debian12:latest-arm64 //java:java_base_root_arm64_debian12
-{REGISTRY}/{PROJECT_ID}/java-base-debian12:latest-ppc64le //java:java_base_root_ppc64le_debian12
-{REGISTRY}/{PROJECT_ID}/java-base-debian12:latest-s390x //java:java_base_root_s390x_debian12
-{REGISTRY}/{PROJECT_ID}/java-base-debian12:nonroot //java:java_base_nonroot_debian12
-{REGISTRY}/{PROJECT_ID}/java-base-debian12:nonroot-amd64 //java:java_base_nonroot_amd64_debian12
-{REGISTRY}/{PROJECT_ID}/java-base-debian12:nonroot-arm64 //java:java_base_nonroot_arm64_debian12
-{REGISTRY}/{PROJECT_ID}/java-base-debian12:nonroot-ppc64le //java:java_base_nonroot_ppc64le_debian12
-{REGISTRY}/{PROJECT_ID}/java-base-debian12:nonroot-s390x //java:java_base_nonroot_s390x_debian12
 {REGISTRY}/{PROJECT_ID}/java-base-debian13:debug //java:java_base_debug_root_debian13
 {REGISTRY}/{PROJECT_ID}/java-base-debian13:debug-amd64 //java:java_base_debug_root_amd64_debian13
 {REGISTRY}/{PROJECT_ID}/java-base-debian13:debug-arm64 //java:java_base_debug_root_arm64_debian13
@@ -298,26 +278,6 @@
 {REGISTRY}/{PROJECT_ID}/java-base:nonroot-arm64 //java:java_base_nonroot_arm64_debian13
 {REGISTRY}/{PROJECT_ID}/java-base:nonroot-ppc64le //java:java_base_nonroot_ppc64le_debian13
 {REGISTRY}/{PROJECT_ID}/java-base:nonroot-s390x //java:java_base_nonroot_s390x_debian13
-{REGISTRY}/{PROJECT_ID}/java17-debian12:debug //java:java17_debug_root_debian12
-{REGISTRY}/{PROJECT_ID}/java17-debian12:debug-amd64 //java:java17_debug_root_amd64_debian12
-{REGISTRY}/{PROJECT_ID}/java17-debian12:debug-arm64 //java:java17_debug_root_arm64_debian12
-{REGISTRY}/{PROJECT_ID}/java17-debian12:debug-nonroot //java:java17_debug_nonroot_debian12
-{REGISTRY}/{PROJECT_ID}/java17-debian12:debug-nonroot-amd64 //java:java17_debug_nonroot_amd64_debian12
-{REGISTRY}/{PROJECT_ID}/java17-debian12:debug-nonroot-arm64 //java:java17_debug_nonroot_arm64_debian12
-{REGISTRY}/{PROJECT_ID}/java17-debian12:debug-nonroot-ppc64le //java:java17_debug_nonroot_ppc64le_debian12
-{REGISTRY}/{PROJECT_ID}/java17-debian12:debug-nonroot-s390x //java:java17_debug_nonroot_s390x_debian12
-{REGISTRY}/{PROJECT_ID}/java17-debian12:debug-ppc64le //java:java17_debug_root_ppc64le_debian12
-{REGISTRY}/{PROJECT_ID}/java17-debian12:debug-s390x //java:java17_debug_root_s390x_debian12
-{REGISTRY}/{PROJECT_ID}/java17-debian12:latest //java:java17_root_debian12
-{REGISTRY}/{PROJECT_ID}/java17-debian12:latest-amd64 //java:java17_root_amd64_debian12
-{REGISTRY}/{PROJECT_ID}/java17-debian12:latest-arm64 //java:java17_root_arm64_debian12
-{REGISTRY}/{PROJECT_ID}/java17-debian12:latest-ppc64le //java:java17_root_ppc64le_debian12
-{REGISTRY}/{PROJECT_ID}/java17-debian12:latest-s390x //java:java17_root_s390x_debian12
-{REGISTRY}/{PROJECT_ID}/java17-debian12:nonroot //java:java17_nonroot_debian12
-{REGISTRY}/{PROJECT_ID}/java17-debian12:nonroot-amd64 //java:java17_nonroot_amd64_debian12
-{REGISTRY}/{PROJECT_ID}/java17-debian12:nonroot-arm64 //java:java17_nonroot_arm64_debian12
-{REGISTRY}/{PROJECT_ID}/java17-debian12:nonroot-ppc64le //java:java17_nonroot_ppc64le_debian12
-{REGISTRY}/{PROJECT_ID}/java17-debian12:nonroot-s390x //java:java17_nonroot_s390x_debian12
 {REGISTRY}/{PROJECT_ID}/java17-debian13:debug //java:java17_debug_root_debian13
 {REGISTRY}/{PROJECT_ID}/java17-debian13:debug-amd64 //java:java17_debug_root_amd64_debian13
 {REGISTRY}/{PROJECT_ID}/java17-debian13:debug-arm64 //java:java17_debug_root_arm64_debian13
@@ -358,26 +318,6 @@
 {REGISTRY}/{PROJECT_ID}/java17:nonroot-arm64 //java:java17_nonroot_arm64_debian13
 {REGISTRY}/{PROJECT_ID}/java17:nonroot-ppc64le //java:java17_nonroot_ppc64le_debian13
 {REGISTRY}/{PROJECT_ID}/java17:nonroot-s390x //java:java17_nonroot_s390x_debian13
-{REGISTRY}/{PROJECT_ID}/java21-debian12:debug //java:java21_debug_root_debian12
-{REGISTRY}/{PROJECT_ID}/java21-debian12:debug-amd64 //java:java21_debug_root_amd64_debian12
-{REGISTRY}/{PROJECT_ID}/java21-debian12:debug-arm64 //java:java21_debug_root_arm64_debian12
-{REGISTRY}/{PROJECT_ID}/java21-debian12:debug-nonroot //java:java21_debug_nonroot_debian12
-{REGISTRY}/{PROJECT_ID}/java21-debian12:debug-nonroot-amd64 //java:java21_debug_nonroot_amd64_debian12
-{REGISTRY}/{PROJECT_ID}/java21-debian12:debug-nonroot-arm64 //java:java21_debug_nonroot_arm64_debian12
-{REGISTRY}/{PROJECT_ID}/java21-debian12:debug-nonroot-ppc64le //java:java21_debug_nonroot_ppc64le_debian12
-{REGISTRY}/{PROJECT_ID}/java21-debian12:debug-nonroot-s390x //java:java21_debug_nonroot_s390x_debian12
-{REGISTRY}/{PROJECT_ID}/java21-debian12:debug-ppc64le //java:java21_debug_root_ppc64le_debian12
-{REGISTRY}/{PROJECT_ID}/java21-debian12:debug-s390x //java:java21_debug_root_s390x_debian12
-{REGISTRY}/{PROJECT_ID}/java21-debian12:latest //java:java21_root_debian12
-{REGISTRY}/{PROJECT_ID}/java21-debian12:latest-amd64 //java:java21_root_amd64_debian12
-{REGISTRY}/{PROJECT_ID}/java21-debian12:latest-arm64 //java:java21_root_arm64_debian12
-{REGISTRY}/{PROJECT_ID}/java21-debian12:latest-ppc64le //java:java21_root_ppc64le_debian12
-{REGISTRY}/{PROJECT_ID}/java21-debian12:latest-s390x //java:java21_root_s390x_debian12
-{REGISTRY}/{PROJECT_ID}/java21-debian12:nonroot //java:java21_nonroot_debian12
-{REGISTRY}/{PROJECT_ID}/java21-debian12:nonroot-amd64 //java:java21_nonroot_amd64_debian12
-{REGISTRY}/{PROJECT_ID}/java21-debian12:nonroot-arm64 //java:java21_nonroot_arm64_debian12
-{REGISTRY}/{PROJECT_ID}/java21-debian12:nonroot-ppc64le //java:java21_nonroot_ppc64le_debian12
-{REGISTRY}/{PROJECT_ID}/java21-debian12:nonroot-s390x //java:java21_nonroot_s390x_debian12
 {REGISTRY}/{PROJECT_ID}/java21-debian13:debug //java:java21_debug_root_debian13
 {REGISTRY}/{PROJECT_ID}/java21-debian13:debug-amd64 //java:java21_debug_root_amd64_debian13
 {REGISTRY}/{PROJECT_ID}/java21-debian13:debug-arm64 //java:java21_debug_root_arm64_debian13

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 removes the Java builds for Debian 12 and migrates the Java 17 build to Debian 13. The refactoring simplifies the Java image build process by removing the deprecated method of fetching Java from GitHub releases and standardizing on using Debian packages from Adoptium. The changes are consistent, well-executed, correct, and improve the overall state of the codebase. No security vulnerabilities were found.

@github-actions
Copy link
Contributor

🌳 🔄 Image Check
This pull request doesn't make any changes to the images. 👍
You can check the details in the report here

@loosebazooka loosebazooka merged commit 860a5a9 into main Feb 27, 2026
14 checks passed
@loosebazooka loosebazooka deleted the byebyejava12 branch February 27, 2026 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants