aboutsummaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorEugene Kliuchnikov <eustas.ru@gmail.com>2022-12-20 12:25:26 +0100
committerGitHub <noreply@github.com>2022-12-20 12:25:26 +0100
commitc48ebca4a8d852eae4a6f1c7609878a784649f41 (patch)
tree9ead45d5a887ffdc6b8ac7f9328a930fd7fe982d /java
parent9b537032371a234d32829def19f4d671e22fde0e (diff)
downloadbrotli-c48ebca4a8d852eae4a6f1c7609878a784649f41.zip
brotli-c48ebca4a8d852eae4a6f1c7609878a784649f41.tar.gz
brotli-c48ebca4a8d852eae4a6f1c7609878a784649f41.tar.bz2
Fix bazel build (#989)
Diffstat (limited to 'java')
-rw-r--r--java/BUILD7
-rw-r--r--java/org/brotli/dec/BUILD2
-rw-r--r--java/org/brotli/wrapper/common/BUILD2
-rw-r--r--java/org/brotli/wrapper/dec/BUILD2
-rw-r--r--java/org/brotli/wrapper/enc/BUILD2
5 files changed, 5 insertions, 10 deletions
diff --git a/java/BUILD b/java/BUILD
index cd55c54..0ae6c15 100644
--- a/java/BUILD
+++ b/java/BUILD
@@ -37,17 +37,12 @@ cc_library(
# <<< JNI headers
genrule(
- name = "license_resource",
+ name = "license",
srcs = ["@org_brotli//:LICENSE"],
outs = ["META-INF/LICENSE"],
cmd = "cp -f $< $@",
)
-java_library(
- name = "license",
- resources = [":license_resource"],
-)
-
########################################################
# WARNING: do not (transitively) depend on this target!
########################################################
diff --git a/java/org/brotli/dec/BUILD b/java/org/brotli/dec/BUILD
index 9257ea4..17286e0 100644
--- a/java/org/brotli/dec/BUILD
+++ b/java/org/brotli/dec/BUILD
@@ -22,7 +22,7 @@ java_library(
],
),
proguard_specs = ["proguard.pgcfg"],
- resource_jars = ["//:license"],
+ resources = ["//:license"],
)
brotli_java_test(
diff --git a/java/org/brotli/wrapper/common/BUILD b/java/org/brotli/wrapper/common/BUILD
index afe9bc5..eeaa474 100644
--- a/java/org/brotli/wrapper/common/BUILD
+++ b/java/org/brotli/wrapper/common/BUILD
@@ -18,7 +18,7 @@ java_library(
["*.java"],
exclude = ["*Test*.java"],
),
- resource_jars = ["//:license"],
+ resources = ["//:license"],
)
java_library(
diff --git a/java/org/brotli/wrapper/dec/BUILD b/java/org/brotli/wrapper/dec/BUILD
index 985c928..ca902f7 100644
--- a/java/org/brotli/wrapper/dec/BUILD
+++ b/java/org/brotli/wrapper/dec/BUILD
@@ -18,7 +18,7 @@ java_library(
["*.java"],
exclude = ["*Test*.java"],
),
- resource_jars = ["//:license"],
+ resources = ["//:license"],
)
java_library(
diff --git a/java/org/brotli/wrapper/enc/BUILD b/java/org/brotli/wrapper/enc/BUILD
index 0f8d2e1..b8500c7 100644
--- a/java/org/brotli/wrapper/enc/BUILD
+++ b/java/org/brotli/wrapper/enc/BUILD
@@ -22,7 +22,7 @@ java_library(
"//org/brotli/common:shared_dictionary",
"//org/brotli/enc:prepared_dictionary",
],
- resource_jars = ["//:license"],
+ resources = ["//:license"],
)
java_library(