Metals

Metals

  • Docs
  • Blog
  • GitHub

›Build Tools

Text Editors

  • Overview
  • Visual Studio Code
  • Atom
  • Vim
  • Sublime Text
  • Emacs
  • Eclipse

Build Tools

  • Overview
  • Bloop
  • Gradle
  • Maven
  • Mill
  • sbt

Contributing

  • Integrating a new build tool
  • Integrating a new editor
  • Tree View Protocol
  • Project Goals
  • Contributing to Metals
  • Contributing to the website
  • Making a release
Edit

Bloop

Bloop is a compile server for Scala that works with sbt and has experimental support for other build tools like Maven, Gradle and Mill. If your workspace contains a .bloop/ directory with Bloop JSON files then Metals will automatically connect to it.

To manually tell Metals to connect with Bloop, run the "Connect to build server" (id: build.connect) command. In VS Code, open the the "Command palette" (Cmd + Shift + P) and search "connect to build server".

Import connect to build server command

Installing Bloop CLI

To compile, test and run from your terminal install the bloop command-line interface with the instructions here: https://scalacenter.github.io/bloop/setup

Customizing build import

Consult the Bloop docs for customizing build import for sbt: https://scalacenter.github.io/bloop/docs/build-tools/sbt

  • Enable IntegrationTest and other custom configurations
  • Speed up build import
  • Enable sbt project references (source dependencies)
  • Export main class
← OverviewGradle →
  • Installing Bloop CLI
  • Customizing build import
Metals
Overview
Text EditorsBuild ToolsProject GoalsContributing
Editors
Visual Studio CodeAtomVimSublime TextEmacsEclipse
Social
Copyright © 2019 Metals