New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java rules should be able to build tree artifacts in their sources #11996
Comments
It would be nice to handle TreeArtifacts. Is this bug "only" about TreeArtifacts or is there something special about React? |
I believe it's only about tree artifacts as we have been able to get around it by fudging the react stuff into a tree artifact that the Java libraries can understand. |
I'll rename this bug then; React or not, it's a pretty reasonable request. |
Java_library
rules does not know how to interpret TreeArtifact
that react_scripts
+1 for tree artifacts in java rules |
I've just wasted a day on this :-( I ended up writing a rule that used the "current_java_runtime" to get access to Then used |
For those who hit the same issue, I could work around it by here's the complete example https://github.com/tanishiking/bazel-playground/tree/main/11_rules_js_migration And here's the link to the conversion on Bazel slack https://bazelbuild.slack.com/archives/CEZUUKQ6P/p1667714288145819 |
Description of the problem / feature request:
Java_library
rules does not know how to interpretTreeArtifact
thatreact_scripts
Feature requests: what underlying problem are you trying to solve with this feature?
I was trying to bundle a React site in a Java Jar for deployment. See question asked on Slack
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Revert this change and add
resources = [ "//javascript/grid-ui:build" ]
. The contents on the:build
are not in the jar.What operating system are you running Bazel on?
OSX and Linux
What's the output of
bazel info release
?What's the output of
git remote get-url origin ; git rev-parse master ; git rev-parse HEAD
?davidburns in ~/development/selenium on trunk λ git remote get-url origin ; git rev-parse trunk ; git rev-parse HEAD
git@github.com:SeleniumHQ/selenium.git
5a5bc38279920bd67b2c7f805bb6b3adbbc6e190
5a5bc38279920bd67b2c7f805bb6b3adbbc6e190
Have you found anything relevant by searching the web?
No, asked on Slack and link is above
Any other information, logs, or outputs that you want to share?
Not really
The text was updated successfully, but these errors were encountered: