Metals works with the following build tools with varying degrees of functionality.
|Build tool||Installation||Goto library dependencies||Find references|
|sbt||Automatic via Bloop||Automatic||Automatic|
|Maven||Automatic via Bloop||Automatic||Semi-automatic|
|Gradle||Automatic via Bloop||Automatic||Automatic|
|Mill||Automatic via Bloop||Automatic||Automatic|
Automatic via Bloop: you can import the build directly from the language server without the need for running custom steps in the terminal. The build is exported to Bloop, a Scala build server that provides fast incremental compilation.
Automatic: you can import the build directly from the language server without the need for running custom steps in the terminal. To use automatic installation start the Metals language server in the root directory of your build.
Manual: setting up Metals requires a few manual steps to generate
Bloop JSON files. In addition to normal
Bloop installation, Metals requires that the project sources are compiled with
compiler plugin and
-Yrangepos option enabled.
Automatic: it is possible to navigate Scala+Java library dependencies using "Goto definition".
Semi-automatic: navigation in library dependency sources works as long as
Bloop JSON files
are populated with
Automatic: it is possible to find all references to a symbol in the project.
Semi-automatic: it is possible to 'Find symbol references' as soon the SemanticDB compiler plugin is manually enabled in the build, check separate build tool pages for details.