eed3si9n / jarjar-abrams

an experimental Scala extension of Jar Jar Links
27 stars 21 forks source link

Kotlin Metadata is not relocated #51

Open thomasbao12 opened 10 months ago

thomasbao12 commented 10 months ago

I posted in bazel_jar_jar's github as well, in case it's an issue with their use of jarjar-abrams: https://github.com/bazeltools/bazel_jar_jar/issues/46

I used bazel_jar_jar to relocate graphql to graphql13 in this lib:

jar_jar(
    name = "graphql_kotlin_schema_generator_shaded",
    inline_rules = ["rule graphql.** graphql13.@1"],
    input_jar = "@maven//:com_expediagroup_graphql_kotlin_schema_generator",
    visibility = ["//visibility:private"],
)

When I look at the decompiled class files, I see import graphql13..., but for the same class, in the kotlin metadata annotation, I see graphql/schema:

Screenshot 2024-01-24 at 4 30 00 PM Screenshot 2024-01-25 at 2 18 58 PM