intellij
intellij copied to clipboard
java_library rule intellij showing so many warnings
Description of the bug:
Even though I am able to compile successfully using intellij and terminal as well, getting errors in java_library rule.
Which category does this issue belong to?
Intellij
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Just add build.bazel with java_library rule.
Which Intellij IDE are you using? Please provide the specific version.
IntelliJ IDEA 2025.1.2
What programming languages and tools are you using? Please provide specific versions.
java
What Bazel plugin version are you using?
2025.06.10.0.1-api-version-251
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
Try adding the import from rules_java.
load("@rules_java//java:java_library.bzl", "java_library")
Can you provide a minimum reproducible example? The problem most likely lies in your project configuration.