Skip to content

Commit fe0481e

Browse files
authored
chore: Add load()s for the Bazel builtin java rules (#2678)
`load()` statements are being added to prepare for moving the rules out of Bazel and into `rules_java` Thank you for opening a Pull Request! For general contributing guidelines, please refer to [contributing guide](https://togithub.com/googleapis/gapic-generator-java/blob/main/CONTRIBUTING.md) Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [ ] Make sure to open an issue as a [bug/issue](https://togithub.com/googleapis/gapic-generator-java/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [ ] Ensure the tests and linter pass - [ ] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary) Fixes https://togithub.com/googleapis/sdk-platform-java/issues/2683
1 parent 40711fd commit fe0481e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gax-java/gax_java.bzl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,15 @@
2626
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2727
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828

29+
load("@rules_java//java:defs.bzl", "java_test")
30+
2931
def java_tests(name, srcs, runtime_deps, size):
3032
classNames = []
3133
for src in srcs:
3234
# convert .java file path to fully qualified class name
3335
className = src[(src.index("/com/") + 1):-5].replace("/", ".")
3436
classNames.append(className)
35-
native.java_test(
37+
java_test(
3638
name = className,
3739
test_class = className,
3840
runtime_deps = runtime_deps,

0 commit comments

Comments
 (0)