Skip to content

Commit

Permalink
[javac] Exclude dummy J2ktMonitor.java from j2kt builds.
Browse files Browse the repository at this point in the history
J2ktMonitor is only present in the j2kt standard library, so it needs to be provided for the rest of the readables but excluded from the j2kt readables.

PiperOrigin-RevId: 704315905
  • Loading branch information
rluble authored and copybara-github committed Dec 9, 2024
1 parent af22ad4 commit ddfe5d9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 39 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("//build_defs:rules.bzl", "j2kt_jvm_library")
load(
"//transpiler/javatests/com/google/j2cl/readable:readable_example.bzl",
"readable_example",
Expand All @@ -8,6 +9,18 @@ package(
licenses = ["notice"],
)

# Exclude J2ktMonitor.java from the readable example because it is part of the J2kt library.
j2kt_jvm_library(
name = "readable-j2kt-jvm",
srcs = glob(
["*.java"],
exclude = ["J2ktMonitor.java"],
),
deps = [
"//jre/java:javaemul_internal_annotations-j2kt-jvm",
],
)

readable_example(
srcs = glob(["*.java"]),
deps = ["//jre/java:javaemul_internal_annotations-j2cl"],
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit ddfe5d9

Please sign in to comment.