Skip to content

Commit 832d84d

Browse files
committed
fixup! run fmt
Signed-off-by: Sam Gammon <sam@elide.ventures>
1 parent 1f52b5a commit 832d84d

File tree

3 files changed

+20
-19
lines changed

3 files changed

+20
-19
lines changed

build_defs/java_opts.bzl

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Java options and protobuf-specific java build rules with those options."""
22

3-
load("@rules_java//java:defs.bzl", "java_library", "java_import")
3+
load("@rules_java//java:defs.bzl", "java_import", "java_library")
44
load("@rules_jvm_external//:defs.bzl", "java_export")
55
load("//:protobuf_version.bzl", "PROTOBUF_JAVA_VERSION")
66
load("//java/osgi:osgi.bzl", "osgi_java_library")
@@ -26,7 +26,7 @@ JAVA9_OPTS = [
2626

2727
## Default JAR manifest entries to stamp on export.
2828
DEFAULT_MANIFEST_ENTRIES = {
29-
"Multi-Release": "true"
29+
"Multi-Release": "true",
3030
}
3131

3232
## Default visibility settings for Java module targets.
@@ -48,13 +48,13 @@ def protobuf_java_library(**kwargs):
4848
)
4949

5050
def protobuf_java_module(
51-
name,
52-
module,
53-
module_deps = [],
54-
deps = [],
55-
jvm_version = JPMS_JDK_TARGET,
56-
visibility = DEFAULT_JMOD_VISIBILITY,
57-
**kwargs):
51+
name,
52+
module,
53+
module_deps = [],
54+
deps = [],
55+
jvm_version = JPMS_JDK_TARGET,
56+
visibility = DEFAULT_JMOD_VISIBILITY,
57+
**kwargs):
5858
"""Builds a `module-info.java` definition for use with a Protobuf Java target.
5959
6060
This macro replaces a chain of `java_library` and `genrule` steps to coax Bazel
@@ -121,7 +121,8 @@ def protobuf_java_module(
121121
deps_rewritten = []
122122
if len(module_deps) > 0:
123123
deps_rewritten = [
124-
"%s-compilejar" % i for i in module_deps
124+
"%s-compilejar" % i
125+
for i in module_deps
125126
]
126127

127128
java_library(
@@ -130,7 +131,7 @@ def protobuf_java_module(
130131
javacopts = JAVA9_OPTS,
131132
deps = deps_rewritten + (deps or []),
132133
visibility = visibility,
133-
**kwargs,
134+
**kwargs
134135
)
135136
native.genrule(
136137
name = module_class_target_name,

java/core/BUILD.bazel

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ protobuf_java_module(
130130
# Should be used as `//java/lite`.
131131
java_library(
132132
name = "lite",
133-
resources = [":javamodule"],
134-
resource_strip_prefix = "java/core/",
135133
srcs = LITE_SRCS + [
136134
":gen_well_known_protos_javalite",
137135
],
136+
resource_strip_prefix = "java/core/",
137+
resources = [":javamodule"],
138138
visibility = [
139139
"//java/lite:__pkg__",
140140
],
@@ -150,8 +150,8 @@ protobuf_versioned_java_library(
150150
"guarantee API/ABI stability.",
151151
bundle_name = "Protocol Buffers [Lite]",
152152
bundle_symbolic_name = "com.google.protobuf",
153-
resources = [":javamodule"],
154153
resource_strip_prefix = "java/core/",
154+
resources = [":javamodule"],
155155
visibility = [
156156
"//java/lite:__pkg__",
157157
],
@@ -224,9 +224,9 @@ java_library(
224224
) + [
225225
":gen_well_known_protos_java",
226226
],
227-
visibility = ["//visibility:public"],
228-
resources = [":javamodule"],
229227
resource_strip_prefix = "java/core/",
228+
resources = [":javamodule"],
229+
visibility = ["//visibility:public"],
230230
exports = [
231231
":lite_runtime_only",
232232
],
@@ -250,8 +250,8 @@ protobuf_versioned_java_library(
250250
"efficient yet extensible format.",
251251
bundle_name = "Protocol Buffers [Core]",
252252
bundle_symbolic_name = "com.google.protobuf",
253-
resources = [":javamodule"],
254253
resource_strip_prefix = "java/core/",
254+
resources = [":javamodule"],
255255
visibility = ["//visibility:public"],
256256
exports = [
257257
":lite_runtime_only",

java/util/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ java_library(
1717
srcs = glob([
1818
"src/main/java/com/google/protobuf/util/*.java",
1919
]),
20-
resources = [":javamodule"],
2120
resource_strip_prefix = "java/util/",
21+
resources = [":javamodule"],
2222
visibility = ["//visibility:public"],
2323
deps = [
2424
"//java/core",
@@ -38,8 +38,8 @@ protobuf_versioned_java_library(
3838
bundle_description = "Utilities for Protocol Buffers",
3939
bundle_name = "Protocol Buffers [Util]",
4040
bundle_symbolic_name = "com.google.protobuf.util",
41-
resources = [":javamodule"],
4241
resource_strip_prefix = "java/util/",
42+
resources = [":javamodule"],
4343
visibility = ["//visibility:public"],
4444
deps = [
4545
"//java/core",

0 commit comments

Comments
 (0)