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(