I want to migrate a maven project to Bazel. In maven, I have some dependencies declared as provided. It means the dependency is used to compile but is not shipped in the final jar.
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_2.11</artifactId>
<version>${spark.version}</version>
<scope>provided</scope>
</dependency>
Is there a way to declare dependencies as provided in Bazel for a java binary that are not in the _deploy.jar ?
java_library.depsmay be the answer.