Skip to content

Commit

Permalink
Remove unused custom java 17 toolchain (#6491)
Browse files Browse the repository at this point in the history
* Update BUILD

* Update WORKSPACE.bzlmod
  • Loading branch information
mai93 authored Jun 18, 2024
1 parent f6bcaa9 commit 5e6c041
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
29 changes: 0 additions & 29 deletions BUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
load("@bazel_tools//tools/jdk:default_java_toolchain.bzl", "default_java_toolchain")

#
# Description: Blaze plugin for various IntelliJ products.
#
Expand Down Expand Up @@ -99,30 +97,3 @@ test_suite(
],
visibility = DEFAULT_TEST_VISIBILITY,
)

default_java_toolchain(
name = "custom_java_17_toolchain",
configuration = dict(),
java_runtime = "@rules_java//toolchains:remotejdk_17",
package_configuration = [
":java_8",
],
source_version = "17",
target_version = "17",
)

# this associates a set of javac flags with a set of packages
java_package_configuration(
name = "java_8",
javacopts = ["-source 8 -target 8"],
packages = ["java_8_packages"],
)

# this is a regular package_group, which is used to specify a set of packages to apply flags to
package_group(
name = "java_8_packages",
packages = [
"//proto/...",
"//third_party/bazel/src/main/protobuf/...",
],
)
3 changes: 0 additions & 3 deletions WORKSPACE.bzlmod
Original file line number Diff line number Diff line change
Expand Up @@ -870,9 +870,6 @@ load("@io_grpc_grpc_java//:repositories.bzl", "grpc_java_repositories")

grpc_java_repositories()

# Register custom java 17 toolchain
register_toolchains("//:custom_java_17_toolchain_definition")

# Dependency needed for Go test library
http_archive(
name = "bazel_gazelle",
Expand Down

0 comments on commit 5e6c041

Please sign in to comment.