Skip to content

Releases: sourcegraph/scip-java

v0.9.4

17 Aug 09:18
4ca307a
Compare
Choose a tag to compare

Thanks to a fantastic contribution by @Arthurm1, this release mostly removes the need to add special module export flags to access compiler APIs - as we no longer use private APIs to produce Semanticdb files from Java.

What's Changed

New Contributors

Full Changelog: v0.9.3...v0.9.4

v0.9.3

16 Aug 14:58
6f17cbe
Compare
Choose a tag to compare

This release bumps sbt-sourcegraph plugin to 0.4.2 bringing important fixes to auto-indexing of Scala projects, notably:

  • Properly support Scala 3
  • Support mixed Java/Scala sources when compling on JDK 17+

We also re-enabled test coverage for auto-indexing Scala projects.

What's Changed

  • Update sbt-sourcegraph and re-enable SBT build tool tests by @keynmol in #636

Full Changelog: v0.9.2...v0.9.3

v0.9.2

08 Aug 13:58
e75a04c
Compare
Choose a tag to compare

This release improves auto-indexing of Gradle projects and removes the Coursier bootstrap sequence which downloaded jars from Maven Central when running SCIP build tool

What's Changed

  • Unconditionally add agent in Gradle plugin, add protobuf codegen test by @keynmol in #630
  • Remove coursier bootstrap and respect COURSIER_JVM_INDEX by @keynmol in #631

Full Changelog: v0.9.1...v0.9.2

v0.9.1

07 Aug 14:50
0fe40e9
Compare
Choose a tag to compare

This release improves the handling of special environment variables recognised by Coursier:

What's Changed

  • Allow picking up credentials from environment variables by @keynmol in #629

Full Changelog: v0.9.0...v0.9.1

v0.9.0

27 Jul 12:41
v0.9.0
8480863
Compare
Choose a tag to compare

Kotlin 1.8

This release upgrades scip-kotlin to v0.3.2, bumping the lowest supported Kotlin version to 1.8.0. See the scip-kotlin v0.3.2 release for more info.

  • bump semanticdb-kotlinc and kotlin-compiler-embeddable for kotlin 1.8 by @Strum355 in #623

Other Changes

Full Changelog: v0.8.26...v0.9.0

v0.8.26

25 Jul 13:55
d4bbe72
Compare
Choose a tag to compare

More robust error handling for Bazel

This release includes two changes related to how the semanticdb-javac compiler plugin handles unexpected failures, which previously crashed the compilation but should now allow compilation to continue.

  • Remove unnecessary throw for unexpected exception by @olafurpg in #619
  • Bazel: fallback to default absolute path logic by @olafurpg in #620

Full Changelog: v0.8.25...v0.8.26

v0.8.25

20 Jul 15:24
a1d4ff2
Compare
Choose a tag to compare

Find implementations for Kotlin

This release upgrades scip-kotlin to v0.3.1, which adds support for "Find implementations" https://github.com/sourcegraph/scip-kotlin/releases/tag/v0.3.1

Improved cross-repo navigation

Previously, due to implementation details, it was not possible to index two separate Gradle or Maven codebases and get cross-repo navigation working between those projects. This didn't work due to implementation details, which are now fixed in this release. For example, you can now index two Gradle codebases and if one project refers to symbols that are defined in the other project then cross-repo navigation should work. The only constraint is that the declared publication version in the upstream project must match the version of the dependency in the downstream project.

  • Enable cross-repository navigation between Gradle/Maven codebases by @olafurpg in #616

What's Changed

New Contributors

Full Changelog: v0.8.24...v0.8.25

v0.8.24

13 Jul 14:41
fa81188
Compare
Choose a tag to compare

Automatic Bazel/Java indexing

This release adds support to automatically index Java/Bazel codebases without changing BUILD or WORKSPACE configuration. See the updated documentation here https://sourcegraph.github.io/scip-java/docs/getting-started.html#bazel

To automatically index a Bazel/Java codebase, install the latest scip-java version and run the command

scip-java index "--bazel-scip-java-binary=$(which scip-java)"
  • Add support to auto-index Bazel builds with an aspect by @olafurpg in #610

Big thanks to @keynmol for reviewing this large PR 🙏🏻

Other changes

Full Changelog: v0.8.23...v0.8.24

v0.8.23

12 Jul 15:06
00c8ed5
Compare
Choose a tag to compare

New -no-relative-path: flag to control indexing of generated files

Previously, the SemanticDB compiler plugin errored when indexing auto-generated files outside of the configured -sourceroot directory (which is automatically inferred for Bazel builds). This behavior was undesirable because:

  • There's no good workaround for the issue
  • The error message was cryptic making it difficult to understand what went wrong

For some cases, we were able to detect this situation for Bazel and ignore the indexed file while printing an informative message, but this behavior was also undesirable because we skipping these files means that we can't render hover messages for symbols in those generated files.

This PR fixes the issue by adding a configurable -no-relative-path: flag with the following valid options:

  • index_anyways (default): indexes the file but with no guarantee that it's possible to recover the location of the original generated file. This allows us to display accurate hover tooltips for symbols in these files even if "Go to definition" won't work.
  • skip: silently ignored these files.
  • warning: ignore these files and print a message explaining it was skipped.
  • error: fail the compilation process (old default).
  • Add -no-relative-path: flag to control indexing of generated files by @olafurpg in #611

Full Changelog: v0.8.22...v0.8.23

v0.8.22

07 Jul 07:39
5028089
Compare
Choose a tag to compare

Bazel improvements

  • Bazel: add support for DirectoryFileObject by @olafurpg in #597
  • If any errors were reported, fail BazelBuildTool with code 1 by @keynmol in #607
  • Special handling of Bazel with source generators by @keynmol in #602
  • bzl: add http_archive to bazel-example by @jhchabran in #599

Mill improvements

  • feat: add support for 0.11.x series of Mill by @ckipp01 in #596
  • deps: bump version of mill plugin to 0.3.5 by @ckipp01 in #605

New Contributors

Full Changelog: v0.8.20...v0.8.22