Restore pre-https://github.com/bazelbuild/bazel/commit/4a2002043ed3907223a403e8b8fc66975e516fd8 behaviour for non-strict proto classpaths
@@ -72,10 +72,10 @@ public class StrictDepsUtils {
JavaCompilationArgsProvider directJars,
ImmutableList<TransitiveInfoCollection> protoRuntimes) {
JavaCompilationArgsProvider.Builder result = JavaCompilationArgsProvider.builder();
+ result.addExports(directJars);
for (JavaProtoLibraryAspectProvider p : deps) {
result.addExports(p.getNonStrictCompArgs());
}
- result.addExports(directJars);
for (TransitiveInfoCollection t : protoRuntimes) {
JavaCompilationArgsProvider p = JavaInfo.getProvider(JavaCompilationArgsProvider.class, t);
if (p != null) {
