Skip to content

Helloworld sample and intellij (unsynced) sources #270

Answered by gkdn
DragonAxe asked this question in Q&A
Discussion options

You must be logged in to vote

I haven't tried Intellij with J2CL but if you are trying to workaround Bazel plugin issue by adding a java_library you need to make sure the dependencies are also converted to java_library dependencies. In your example @com_google_j2cl//:jsinterop-annotations-j2cl would need to be replaced with @com_google_j2cl//:jsinterop-annotations.

Taking a quick look at https://github.com/bazelbuild/intellij, they are aspecting Bazel providers like JavaInfo. That should be ultimately updated to handle J2clInfo provider to support J2CL. https://github.com/bazelbuild/intellij/blob/df5f04bc4e412fb6a938af826f9c86a0c4a4591d/aspect/intellij_info_impl.bzl looks like the main part collecting information for …

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@treblereel
Comment options

@gkdn
Comment options

gkdn Apr 17, 2025
Maintainer

@treblereel
Comment options

@gkdn
Comment options

gkdn Apr 17, 2025
Maintainer

Answer selected by DragonAxe
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants