Skip to content

Commit

Permalink
build(deps): Bump Bazel from 7.4.1 to 8.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vorburger committed Dec 30, 2024
1 parent 9d522ca commit 6af9f82
Show file tree
Hide file tree
Showing 29 changed files with 131 additions and 145 deletions.
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.4.1
8.0.0
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ GRPC_JAVA_VERSION = "1.69.0"
register_toolchains("//tools/java_toolchain:repository_default_java_toolchain_definition")

# https://github.com/protocolbuffers/protobuf/tree/main?tab=readme-ov-file#bazel-with-bzlmod
bazel_dep(name = "protobuf", version = "29.2", repo_name = "com_google_protobuf")
bazel_dep(name = "protobuf", version = "29.2")

# https://registry.bazel.build/modules/rules_java
bazel_dep(name = "rules_java", version = "8.6.3")
Expand Down
167 changes: 68 additions & 99 deletions MODULE.bazel.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions connectors/demo/BUILD.disabled
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
# limitations under the License.

load("@rules_java//java:defs.bzl", "java_binary", "java_proto_library", "java_test")
load("@rules_proto//proto:defs.bzl", "proto_library")
load("@protobuf//bazel:proto_library.bzl", "proto_library")

proto_library(
name = "demo_proto",
srcs = ["src/main/java/dev/enola/demo/demo_data.proto"],
deps = [
"@com_google_protobuf//:timestamp_proto",
"@protobuf//:timestamp_proto",
],
)

Expand Down
2 changes: 1 addition & 1 deletion java/dev/enola/common/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ java_library(

junit_tests(
name = "tests",
srcs = glob(["**/*Test.java"]),
srcs = glob(["*Test.java"]),
deps = [
":common",
],
Expand Down
2 changes: 1 addition & 1 deletion java/dev/enola/common/canonicalize/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ java_library(

junit_tests(
name = "tests",
srcs = glob(["**/*Test.java"]),
srcs = glob(["*Test.java"]),
deps = [
":canonicalize",
"//java/dev/enola/common/context/testlib",
Expand Down
2 changes: 1 addition & 1 deletion java/dev/enola/common/concurrent/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ java_library(

junit_tests(
name = "tests",
srcs = glob(["**/*Test.java"]),
srcs = glob(["*Test.java"]),
deps = [
":concurrent",
"//java/dev/enola/common/context",
Expand Down
2 changes: 1 addition & 1 deletion java/dev/enola/common/context/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ java_library(

junit_tests(
name = "tests",
srcs = glob(["**/*Test.java"]),
srcs = glob(["*Test.java"]),
deps = [
":context",
"//java/dev/enola/common/context/testlib",
Expand Down
7 changes: 5 additions & 2 deletions java/dev/enola/common/context/testlib/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ java_library(
name = "testlib",
srcs = glob(
["*.java"],
exclude = ["**/*Test.java"],
exclude = ["*Test.java"],
),
visibility = ["//:__subpackages__"],
deps = [
Expand All @@ -39,7 +39,10 @@ java_library(

junit_tests(
name = "tests",
srcs = glob(["**/*Test.java"]),
srcs = glob(
include = ["*Test.java"],
allow_empty = True,
),
deps = [
":testlib",
"//java/dev/enola/common/io",
Expand Down
2 changes: 1 addition & 1 deletion java/dev/enola/common/convert/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ java_library(

junit_tests(
name = "tests",
srcs = glob(["**/*Test.java"]),
srcs = glob(["*Test.java"]),
deps = [
":convert",
],
Expand Down
5 changes: 4 additions & 1 deletion java/dev/enola/common/diff/testlib/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ java_library(

junit_tests(
name = "tests",
srcs = glob(["**/*Test.java"]),
srcs = glob(
include = ["*Test.java"],
allow_empty = True,
),
deps = [
":testlib",
"//java/dev/enola/common/io",
Expand Down
5 changes: 4 additions & 1 deletion java/dev/enola/common/html/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ java_library(

junit_tests(
name = "tests",
srcs = glob(["**/*Test.java"]),
srcs = glob(
include = ["*Test.java"],
allow_empty = True,
),
deps = [
":html",
"//java/dev/enola/common/io",
Expand Down
5 changes: 4 additions & 1 deletion java/dev/enola/common/io/testlib/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ java_library(

junit_tests(
name = "tests",
srcs = glob(["*Test.java"]),
srcs = glob(
include = ["*Test.java"],
allow_empty = True,
),
deps = [
":testlib",
"//java/dev/enola/common/io",
Expand Down
2 changes: 1 addition & 1 deletion java/dev/enola/common/markdown/exec/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ java_library(

junit_tests(
name = "tests",
srcs = glob(["**/*Test.java"]),
srcs = glob(["*Test.java"]),
deps = [
":markdown",
],
Expand Down
14 changes: 7 additions & 7 deletions java/dev/enola/common/protobuf/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.

load("@protobuf//bazel:proto_library.bzl", "proto_library")
load("@rules_java//java:defs.bzl", "java_library", "java_proto_library")
load("@rules_proto//proto:defs.bzl", "proto_library")
load("//tools/bazel:junit.bzl", "junit_tests")

proto_library(
name = "validation_proto",
srcs = ["validation.proto"],
deps = [
"@com_google_protobuf//:any_proto",
"@protobuf//:any_proto",
],
)

Expand All @@ -38,10 +38,10 @@ proto_library(
name = "test_proto",
srcs = ["test.proto"],
deps = [
"@com_google_protobuf//:any_proto",
"@com_google_protobuf//:descriptor_proto",
"@com_google_protobuf//:struct_proto",
"@com_google_protobuf//:timestamp_proto",
"@protobuf//:any_proto",
"@protobuf//:descriptor_proto",
"@protobuf//:struct_proto",
"@protobuf//:timestamp_proto",
],
)

Expand Down Expand Up @@ -77,7 +77,7 @@ java_library(

junit_tests(
name = "tests",
srcs = glob(["**/*Test.java"]),
srcs = glob(["*Test.java"]),
deps = [
":protobuf",
":test_java_proto",
Expand Down
2 changes: 1 addition & 1 deletion java/dev/enola/common/time/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ java_library(

junit_tests(
name = "tests",
srcs = glob(["**/*Test.java"]),
srcs = glob(["*Test.java"]),
deps = [
":time",
],
Expand Down
2 changes: 1 addition & 1 deletion java/dev/enola/common/tree/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ java_library(

junit_tests(
name = "tests",
srcs = glob(["**/*Test.java"]),
srcs = glob(["*Test.java"]),
deps = [
":tree",
],
Expand Down
2 changes: 1 addition & 1 deletion java/dev/enola/common/xml/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ java_library(

junit_tests(
name = "tests",
srcs = glob(["**/*Test.java"]),
srcs = glob(["*Test.java"]),
deps = [
":xml",
"//java/dev/enola/common/context/testlib",
Expand Down
2 changes: 1 addition & 1 deletion java/dev/enola/common/yamljson/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ java_library(

junit_tests(
name = "tests",
srcs = glob(["**/*Test.java"]),
srcs = glob(["*Test.java"]),
deps = [
":yamljson",
"//java/dev/enola/common/io",
Expand Down
5 changes: 4 additions & 1 deletion java/dev/enola/common/yamljson/testlib/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ java_library(

junit_tests(
name = "tests",
srcs = glob(["*Test.java"]),
srcs = glob(
include = ["*Test.java"],
allow_empty = True,
),
deps = [
":testlib",
],
Expand Down
12 changes: 6 additions & 6 deletions java/dev/enola/core/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ load("//tools/bazel:junit.bzl", "junit_tests")

# https://github.com/bazelbuild/rules_go/blob/master/proto/core.rst#go_proto_library

load("@protobuf//bazel:proto_library.bzl", "proto_library")
load("@rules_go//proto:def.bzl", "go_proto_library")
load("@rules_java//java:defs.bzl", "java_library", "java_proto_library")
load("@rules_proto//proto:defs.bzl", "proto_library")

proto_library(
name = "ext_proto",
srcs = ["enola_ext.proto"],
deps = [
"@com_google_protobuf//:descriptor_proto",
"@protobuf//:descriptor_proto",
],
)

Expand All @@ -40,17 +40,17 @@ proto_library(
deps = [
":ext_proto",
"//java/dev/enola/thing:thing_proto",
"@com_google_protobuf//:any_proto",
"@com_google_protobuf//:descriptor_proto",
"@com_google_protobuf//:struct_proto",
"@protobuf//:any_proto",
"@protobuf//:descriptor_proto",
"@protobuf//:struct_proto",
],
)

proto_library(
name = "util_proto",
srcs = ["util/enola_util.proto"],
deps = [
"@com_google_protobuf//:timestamp_proto",
"@protobuf//:timestamp_proto",
],
)

Expand Down
5 changes: 4 additions & 1 deletion java/dev/enola/datatype/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ java_library(

junit_tests(
name = "tests",
srcs = glob(["**/*Test.java"]),
srcs = glob(
include = ["*Test.java"],
allow_empty = True,
),
deps = [
":datatype",
"//java/dev/enola/common/convert",
Expand Down
1 change: 0 additions & 1 deletion java/dev/enola/format/xml/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ java_library(
),
plugins = ["//tools/bazel/java_plugin:autoservice"],
resource_strip_prefix = "java/",
resources = glob(["**/*.html"]),
visibility = ["//:__subpackages__"],
deps = [
"//java/dev/enola/common/context",
Expand Down
5 changes: 4 additions & 1 deletion java/dev/enola/infer/datalog/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ java_library(

junit_tests(
name = "tests",
srcs = glob(["**/*Test.java"]),
srcs = glob(
include = ["*Test.java"],
allow_empty = True,
),
deps = [
":datalog",
],
Expand Down
2 changes: 1 addition & 1 deletion java/dev/enola/model/enola/meta/proto/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

load("@rules_proto//proto:defs.bzl", "proto_library")
load("@protobuf//bazel:proto_library.bzl", "proto_library")

proto_library(
name = "meta_proto",
Expand Down
6 changes: 4 additions & 2 deletions java/dev/enola/rdf/proto/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ java_library(

junit_tests(
name = "tests",
srcs = glob(["*Test.java"]),
srcs_utils = glob(["*Subject.java"]),
srcs = glob(
include = ["*Test.java"],
allow_empty = True,
),
deps = [
":proto",
"//java/dev/enola/common/context",
Expand Down
4 changes: 2 additions & 2 deletions java/dev/enola/thing/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@
# See the License for the specific language governing permissions and
# limitations under the License.

load("@protobuf//bazel:proto_library.bzl", "proto_library")
load("@rules_go//proto:def.bzl", "go_proto_library")
load("@rules_java//java:defs.bzl", "java_library", "java_proto_library")
load("@rules_proto//proto:defs.bzl", "proto_library")
load("//tools/bazel:junit.bzl", "junit_tests")

proto_library(
name = "thing_proto",
srcs = ["thing.proto"],
visibility = ["//:__subpackages__"],
deps = [
"@com_google_protobuf//:timestamp_proto",
"@protobuf//:timestamp_proto",
],
)

Expand Down
4 changes: 0 additions & 4 deletions java/dev/enola/thing/gen/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ junit_tests(
srcs = glob([
"**/*Test.java",
]),
srcs_utils = glob(
["**/*Test*.java"],
exclude = ["**/*Test.java"],
),
deps = [
":gen",
"//java/dev/enola/common/context",
Expand Down
1 change: 0 additions & 1 deletion java/dev/enola/web/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ junit_tests(
name = "tests",
size = "medium",
srcs = glob(["*Test.java"]),
srcs_utils = glob(["*Abstract.java"]),
runtime_deps = [
"@enola_maven//:org_slf4j_slf4j_simple",
],
Expand Down

0 comments on commit 6af9f82

Please sign in to comment.