Move java constraints to rules_java
Move java constraints to rules_java

https://github.com/bazelbuild/bazel/issues/6516
https://github.com/bazelbuild/bazel/issues/6521

PiperOrigin-RevId: 254374629
Change-Id: I9fd82cbf8d244a0419026b75cfda83894859dbbd

bazelbuild/rules_java