@@ -241,7 +241,7 @@ free to subscribe to the tracking issues to receive updates on your build tool.
241241| Gradle | ✅ | ✅ | ✅ | |
242242| sbt | ✅ | ✅ | n/a | |
243243| Ant | ❌ | ❌ | ❌ | [ sourcegraph/scip-java #305 ] ( https://github.com/sourcegraph/scip-java/issues/305 ) |
244- | Bazel | ❌ | ❌ | ❌ | [ sourcegraph/scip-java # 88 ] ( https://github.com/sourcegraph/scip-java/issues/88 ) |
244+ | Bazel | ✅ | ✅ | ❌ | |
245245| Buck | ❌ | ❌ | ❌ | [ sourcegraph/scip-java #99 ] ( https://github.com/sourcegraph/scip-java/issues/99 ) |
246246| Mill | ❌ | ❌ | ❌ | [ sourcegraph/scip-java #306 ] ( https://github.com/sourcegraph/scip-java/issues/306 ) |
247247
@@ -299,3 +299,23 @@ projects, with the following caveats:
299299| ------------- | --------- | ----------------------- |
300300| sbt <v0.13.17 | ❌ | Upgrade to sbt v0.13.17 |
301301
302+ ### Bazel
303+
304+ Bazel is supported by scip-java but it requires custom configuration to work
305+ correctly. Note that the ` scip-java index ` command does not automatically index
306+ Bazel builds.
307+
308+ The Bazel integration for scip-java is specifically designed to be compatible
309+ with the Bazel build cache to enable incremental indexing. To achieve this,
310+ scip-java must be configured in ` WORKSPACE ` and ` BUILD ` files. The scip-java
311+ repository contains an example for how to configure everything.
312+
313+ - [ WORKSPACE] ( https://github.com/sourcegraph/scip-java/blob/main/examples/bazel-example/WORKSPACE ) :
314+ adds the required dependencies to be able to run scip-java itself.
315+ - [ BUILD] ( https://github.com/sourcegraph/scip-java/blob/main/examples/bazel-example/src/main/java/example/BUILD ) :
316+ configured ` java_library ` and ` java_binary ` targets to be indexed with
317+ scip-java.
318+
319+ Don't hesitate to open an issue in the
320+ [ scip-java repository] ( https://github.com/sourcegraph/scip-java ) if you have any
321+ questions about using scip-java with Bazel builds.
0 commit comments