Skip to content

Commit ed8af89

Browse files
hvadehracopybara-github
authored andcommitted
Move the @rules_java version constant out of defs.bzl
PiperOrigin-RevId: 633860668 Change-Id: Ida6f3d53d0e905906d6065539809c4c60475fc96
1 parent ef50aab commit ed8af89

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

distro/BUILD.bazel

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")
22
load("@rules_pkg//pkg/releasing:defs.bzl", "print_rel_notes")
3-
load("//java:defs.bzl", "version")
43

54
package(
65
default_visibility = ["//visibility:private"],
76
)
87

8+
_VERSION = "7.5.0"
9+
910
# Build the artifact to put on the github release page.
1011
pkg_tar(
11-
name = "rules_java-%s" % version,
12+
name = "rules_java-%s" % _VERSION,
1213
srcs = ["//:distribution"],
1314
extension = "tar.gz",
1415
# It is all source code, so make it read-only.
@@ -26,5 +27,5 @@ print_rel_notes(
2627
repo = "rules_java",
2728
setup_file = "java:repositories.bzl",
2829
toolchains_method = "rules_java_toolchains",
29-
version = version,
30+
version = _VERSION,
3031
)

java/defs.bzl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ load("//java/toolchains:java_package_configuration.bzl", _java_package_configura
2525
load("//java/toolchains:java_runtime.bzl", _java_runtime = "java_runtime")
2626
load("//java/toolchains:java_toolchain.bzl", _java_toolchain = "java_toolchain")
2727

28-
version = "7.5.0"
29-
3028
# Language rules
3129

3230
java_binary = _java_binary

0 commit comments

Comments
 (0)