File tree Expand file tree Collapse file tree 3 files changed +7
-36
lines changed
java/jsinterop/annotations Expand file tree Collapse file tree 3 files changed +7
-36
lines changed Original file line number Diff line number Diff line change 4
4
5
5
load ("@bazel_skylib//rules:build_test.bzl" , "build_test" )
6
6
load ("@rules_license//rules:license.bzl" , "license" )
7
- load ("@com_google_j2cl//build_defs:rules.bzl" , "j2cl_alias" )
8
7
9
8
package (
10
9
default_applicable_licenses = ["//:license" ],
@@ -26,7 +25,6 @@ build_test(
26
25
name = "rule_test" ,
27
26
targets = [
28
27
":jsinterop-annotations" ,
29
- ":jsinterop-annotations-j2cl" ,
30
28
],
31
29
)
32
30
35
33
actual = "//java/jsinterop/annotations:annotations" ,
36
34
tags = ["avoid_dep" ], # Use //third_party/java/jsinterop_annotations:jsinterop-annotations instead.
37
35
)
38
-
39
- j2cl_alias (
40
- name = "jsinterop-annotations-j2cl" ,
41
- actual = "//java/jsinterop/annotations:annotations-j2cl" ,
42
- tags = ["avoid_dep" ], # Use //third_party/java/jsinterop_annotations:jsinterop-annotations-j2cl instead.
43
- )
Original file line number Diff line number Diff line change 3
3
repo_name = "com_google_jsinterop_annotations" ,
4
4
)
5
5
6
- bazel_dep (name = "j2cl" , repo_name = "com_google_j2cl" , version = "20250630" )
7
-
8
- # Use head j2cl for testing purposes.
9
- archive_override (
10
- module_name = "j2cl" ,
11
- strip_prefix = "j2cl-master" ,
12
- urls = ["https://github.com/google/j2cl/archive/master.zip" ],
13
- )
14
-
15
6
bazel_dep (
16
7
name = "rules_java" ,
17
8
version = "8.13.0" ,
@@ -31,3 +22,9 @@ bazel_dep(
31
22
name = "google_bazel_common" ,
32
23
version = "0.0.1" ,
33
24
)
25
+
26
+ # Bump the rules_python version to workaround https://github.com/bazel-contrib/rules_python/issues/1169
27
+ bazel_dep (
28
+ name = "rules_python" ,
29
+ version = "1.4.1" ,
30
+ )
Original file line number Diff line number Diff line change 3
3
#
4
4
5
5
load ("@google_bazel_common//tools/javadoc:javadoc.bzl" , "javadoc_library" )
6
- load ("@rules_java//java:defs.bzl" , "java_import" , "java_library" )
7
- load ("@com_google_j2cl//build_defs:rules.bzl" , "j2cl_import" )
6
+ load ("@rules_java//java:defs.bzl" , "java_library" )
8
7
9
8
package (
10
9
default_applicable_licenses = ["//:license" ],
@@ -26,20 +25,3 @@ javadoc_library(
26
25
"notap" ,
27
26
],
28
27
)
29
-
30
- # Re-import only the output jar, dropping all transitive dependencies in the
31
- # process. This is important for JsInterop Annotations as these are used by
32
- # the J2CL-emulated JRE itself and thus cannot have any dependencies outside of
33
- # toolchain's bootclasspath.
34
- java_import (
35
- name = "annotations-j2cl_jar" ,
36
- jars = [":libannotations.jar" ],
37
- tags = ["incomplete-deps" ],
38
- # Grant access to J2CL JRE to include it in the bootclasspath which is a java_library.
39
- visibility = ["@com_google_j2cl//third_party:__pkg__" ],
40
- )
41
-
42
- j2cl_import (
43
- name = "annotations-j2cl" ,
44
- jar = ":annotations-j2cl_jar" ,
45
- )
You can’t perform that action at this time.
0 commit comments