From 4d485b08ee65c28a85a27a0d07cd4d8bc2fd46a7 Mon Sep 17 00:00:00 2001 From: Vaidas Pilkauskas Date: Mon, 7 Dec 2020 15:27:59 +0200 Subject: [PATCH] Fix analyzer tests --- third_party/dependency_analyzer/src/test/BUILD | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/third_party/dependency_analyzer/src/test/BUILD b/third_party/dependency_analyzer/src/test/BUILD index 1e34555ab0..8f603fea7c 100644 --- a/third_party/dependency_analyzer/src/test/BUILD +++ b/third_party/dependency_analyzer/src/test/BUILD @@ -4,8 +4,8 @@ load("//scala:scala.bzl", "scala_junit_test", "scala_test") common_jvm_flags = [ "-Dplugin.jar.location=$(location //third_party/dependency_analyzer/src/main:dependency_analyzer)", - "-Dscala.library.location=$(location //external:io_bazel_rules_scala/dependency/scala/scala_library)", - "-Dscala.reflect.location=$(location //external:io_bazel_rules_scala/dependency/scala/scala_reflect)", + "-Dscala.library.location=$(rootpath //external:io_bazel_rules_scala/dependency/scala/scala_library)", + "-Dscala.reflect.location=$(rootpath //external:io_bazel_rules_scala/dependency/scala/scala_reflect)", ] scala_test( @@ -64,7 +64,7 @@ scala_test( "io/bazel/rulesscala/dependencyanalyzer/StrictDepsTest.scala", ], jvm_flags = common_jvm_flags + [ - "-Dguava.jar.location=$(location @com_google_guava_guava_21_0_with_file//jar)", + "-Dguava.jar.location=$(rootpath @com_google_guava_guava_21_0_with_file//jar)", "-Dapache.commons.jar.location=$(location @org_apache_commons_commons_lang_3_5_without_file//:linkable_org_apache_commons_commons_lang_3_5_without_file)", ], unused_dependency_checker_mode = "off",