Exclude java sources for test while bootstrapping
Exclude java sources for test while bootstrapping

These sources are only for testing and are not part of Bazel binary. However, they depends on libraries like `truth`, excluding them means we can have less dependencies while bootstrapping Bazel.

Working towards: #9408

Closes #11477.

PiperOrigin-RevId: 313080322

bazelbuild/bazel,meteorcloudy/bazel,davidzchen/bazel,twitter-forks/bazel,safarmer/bazel,cushon/bazel,bazelbuild/bazel,twitter-forks/bazel,safarmer/bazel,katre/bazel,ButterflyNetwork/bazel,katre/bazel,meteorcloudy/bazel,meteorcloudy/bazel,werkt/bazel,ulfjack/bazel,ulfjack/bazel,perezd/bazel,twitter-forks/bazel,meteorcloudy/bazel,katre/bazel,davidzchen/bazel,cushon/bazel,davidzchen/bazel,ButterflyNetwork/bazel,ulfjack/bazel,twitter-forks/bazel,meteorcloudy/bazel,werkt/bazel,twitter-forks/bazel,perezd/bazel,katre/bazel,perezd/bazel,meteorcloudy/bazel,perezd/bazel,ulfjack/bazel,davidzchen/bazel,perezd/bazel,bazelbuild/bazel,werkt/bazel,ButterflyNetwork/bazel,davidzchen/bazel,safarmer/bazel,bazelbuild/bazel,bazelbuild/bazel,meteorcloudy/bazel,perezd/bazel,safarmer/bazel,twitter-forks/bazel,ulfjack/bazel,safarmer/bazel,ulfjack/bazel,davidzchen/bazel,ButterflyNetwork/bazel,ulfjack/bazel,ButterflyNetwork/bazel,perezd/bazel,cushon/bazel,werkt/bazel,katre/bazel,twitter-forks/bazel,cushon/bazel,katre/bazel,ButterflyNetwork/bazel,cushon/bazel,werkt/bazel,davidzchen/bazel,cushon/bazel,bazelbuild/bazel,safarmer/bazel,werkt/bazel