Skip to content

Commit 271df7f

Browse files
Remove binary artifacts due to security policy violation (#1538)
* Remove jar from source code: relate_2.11-2.1.1.jar * Remove jar from source code: barejar * Remove jar from source code: scala_import_never_link.jar * Remove jar from source code: example_jar1.jar, example_jar2.jar * Remove jar from source code: hellos-and-byes.jar * Remove jar from source code: fake_sig.jar * Remove jar from source code: thrift3_scrooge.jar
1 parent 0a6df80 commit 271df7f

File tree

45 files changed

+157
-56
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+157
-56
lines changed

test/BUILD

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
load("@rules_python//python:defs.bzl", "py_binary")
2-
load("@rules_java//java:defs.bzl", "java_binary", "java_import", "java_library")
2+
load("@rules_java//java:defs.bzl", "java_binary", "java_library")
33
load(
44
"//scala:scala.bzl",
55
"scala_binary",
@@ -616,9 +616,13 @@ scala_library(
616616
)
617617

618618
# make sure making a fat jar strips signatures
619-
java_import(
619+
java_library(
620620
name = "fakejar",
621-
jars = ["fake_sig.jar"],
621+
resources = [
622+
"//test/src/main/resources/META-INF:FAKE.DSA",
623+
"//test/src/main/resources/META-INF:FAKE.RSA",
624+
],
625+
visibility = ["//visibility:public"],
622626
)
623627

624628
scala_binary(

test/example_jars/BUILD

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
load("@rules_java//java:defs.bzl", "java_import")
1+
load("//scala:scala.bzl", "scala_library")
22

3-
java_import(
3+
scala_library(
44
name = "example_jar1",
5-
jars = [
6-
"example_jar1.jar",
5+
resources = [
6+
"//test/src/main/resources/META-INF/services:org.apache.beam.sdk.io.FileSystemRegistrar",
77
],
88
visibility = ["//visibility:public"],
99
)
1010

11-
java_import(
11+
scala_library(
1212
name = "example_jar2",
13-
jars = [
14-
"example_jar2.jar",
15-
],
13+
resource_strip_prefix = "{}/{}".format(
14+
package_name(),
15+
"src/main/resources",
16+
),
17+
resources = ["src/main/resources/META-INF/services/org.apache.beam.sdk.io.FileSystemRegistrar"],
1618
visibility = ["//visibility:public"],
1719
)

test/example_jars/example_jar1.jar

-1.69 KB
Binary file not shown.

test/example_jars/example_jar2.jar

-1.35 KB
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.apache.beam.sdk.io.LocalFileSystemRegistrar

test/fake_sig.jar

-492 Bytes
Binary file not shown.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
exports_files([
2+
"FAKE.DSA",
3+
"FAKE.RSA",
4+
])

test/src/main/resources/META-INF/FAKE.DSA

Whitespace-only changes.

test/src/main/resources/META-INF/FAKE.RSA

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
exports_files([
2+
"org.apache.beam.sdk.io.FileSystemRegistrar",
3+
])

0 commit comments

Comments
 (0)