From 128875b501bc2989617ae553317b80faa556d752 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 15 Aug 2019 16:11:30 +0100 Subject: chore: Remove remaining Bazel-related files --- .../bazel/rules_haskell/haskell/private/java.bzl | 48 ---------------------- 1 file changed, 48 deletions(-) delete mode 100644 third_party/bazel/rules_haskell/haskell/private/java.bzl (limited to 'third_party/bazel/rules_haskell/haskell/private/java.bzl') diff --git a/third_party/bazel/rules_haskell/haskell/private/java.bzl b/third_party/bazel/rules_haskell/haskell/private/java.bzl deleted file mode 100644 index 44c4e114d7ba..000000000000 --- a/third_party/bazel/rules_haskell/haskell/private/java.bzl +++ /dev/null @@ -1,48 +0,0 @@ -"""Interop with Java.""" - -load("@bazel_skylib//lib:collections.bzl", "collections") - -JavaInteropInfo = provider( - doc = "Information needed for interop with Java rules.", - fields = { - "inputs": "Files needed during build.", - "env": "Dict with env variables that should be set during build.", - }, -) - -def java_interop_info(ctx): - """Gather information from any Java dependencies. - - Args: - ctx: Rule context. - - Returns: - JavaInteropInfo: Information needed for Java interop. - """ - - inputs = depset( - transitive = [ - # We only expose direct dependencies, though we could - # expose transitive ones as well. Only exposing the direct - # ones corresponds to Bazel's "strict Java dependencies" - # mode. See - # https://github.com/tweag/rules_haskell/issues/96. - dep[JavaInfo].compile_jars - for dep in ctx.attr.deps - if JavaInfo in dep - ], - ) - - env_dict = dict() - uniq_classpath = collections.uniq([ - f.path - for f in inputs - ]) - - if len(uniq_classpath) > 0: - env_dict["CLASSPATH"] = ":".join(uniq_classpath) - - return JavaInteropInfo( - inputs = inputs, - env = env_dict, - ) -- cgit 1.4.1