# Coursier + Bloop = Another Build Tool?

**URL:** <https://users.scala-lang.org/t/coursier-bloop-another-build-tool/7507>\
**Category:** Question\
**Created:** [June 1, 2021, 7:35am UTC](https://users.scala-lang.org/t/coursier-bloop-another-build-tool/7507 "2021-06-01T07:35:02Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tyler](https://users.scala-lang.org/user_avatar/users.scala-lang.org/tyler/32/1893_2.png) [@Tyler](https://users.scala-lang.org/u/Tyler)\
**Post date:** [June 1, 2021, 7:35am UTC](https://users.scala-lang.org/t/coursier-bloop-another-build-tool/7507/1 "2021-06-01T07:35:02Z")

</div>

Just out of curiosity, since these two both have plugins of sbt, why not just ditch sbt and combine these two to create a tool just like rust-lang’s cargo to get away from all the quirks that sbt has and provide a more easy-to-use experience to the newcomers. I know backward compatibility is important, but scala3 is already a giant leap and why not leverage that and promote a new build tool?

---

<div class="post-metadata">

**Author:** ![Tyler](https://users.scala-lang.org/user_avatar/users.scala-lang.org/tyler/32/1893_2.png) [@Tyler](https://users.scala-lang.org/u/Tyler)\
**Post date:** [June 1, 2021, 7:38am UTC](https://users.scala-lang.org/t/coursier-bloop-another-build-tool/7507/2 "2021-06-01T07:38:56Z")

</div>

I am not trying to blame sbt and ignore the work of sbt contributers but I have to say sbt doesn’t meet my expectation in many ways.

---

<div class="post-metadata">

**Author:** ![Iltotore](https://users.scala-lang.org/user_avatar/users.scala-lang.org/iltotore/32/1879_2.png) [@Iltotore](https://users.scala-lang.org/u/Iltotore)\
**Post date:** [June 1, 2021, 7:55am UTC](https://users.scala-lang.org/t/coursier-bloop-another-build-tool/7507/3 "2021-06-01T07:55:05Z")

</div>

Are you looking for another Scala build tool that uses Coursier and Bloop ?

If I’m right, give [Mill](https://com-lihaoyi.github.io/mill/mill/Intro_to_Mill.html) a try. This build tool was created because of [some problems with SBT](https://www.lihaoyi.com/post/SowhatswrongwithSBT.html).  
Its syntax is really light for a “minimal-required” module:

```auto
import mill._, scalalib._

object main extends ScalaModule {
  def scalaVersion = "3.0.0"
}

```

---

<div class="post-metadata">

**Author:** ![hmf](https://users.scala-lang.org/user_avatar/users.scala-lang.org/hmf/32/426_2.png) [@hmf](https://users.scala-lang.org/u/hmf)\
**Post date:** [June 1, 2021, 8:32am UTC](https://users.scala-lang.org/t/coursier-bloop-another-build-tool/7507/4 "2021-06-01T08:32:58Z")

</div>

Just to add to this - you can use this combination with VS Code and the VS code Metals plugin. The Mill project is imported and you are ready to go.

---

<div class="post-metadata">

**Author:** ![Tyler](https://users.scala-lang.org/user_avatar/users.scala-lang.org/tyler/32/1893_2.png) [@Tyler](https://users.scala-lang.org/u/Tyler)\
**Post date:** [June 1, 2021, 8:44am UTC](https://users.scala-lang.org/t/coursier-bloop-another-build-tool/7507/5 "2021-06-01T08:44:13Z")

</div>

Thanks for your reply. I know about mill. However my point is to hava scala’s “cargo”. Cargo describes itself as “a package manager and build tool for the Rust language” and as for scala, coursier is pretty handy for managing packages and bloop is for building codes. Therefore, the idea of combining the two just emerged.

In short, why can’t we have scala’s “cargo” now that we already have coursier and bloop?

---

<div class="post-metadata">

**Author:** ![hmf](https://users.scala-lang.org/user_avatar/users.scala-lang.org/hmf/32/426_2.png) [@hmf](https://users.scala-lang.org/u/hmf)\
**Post date:** [June 1, 2021, 9:25am UTC](https://users.scala-lang.org/t/coursier-bloop-another-build-tool/7507/6 "2021-06-01T09:25:04Z")

</div>

But Mill already does that merging. You declare your dependencies in the `build.sc` and those will be downloaded by Coursier (used by Mill). Note that Mill caches its libraries, so if you use Coursier’s command line to download libraries (not applications), Mill will use them.

EDIT: Bloop is a compile server. You don’t strictly need Bloop to compile and execute your project. You can use the Mill command line.

---

<div class="post-metadata">

**Author:** ![Iltotore](https://users.scala-lang.org/user_avatar/users.scala-lang.org/iltotore/32/1879_2.png) [@Iltotore](https://users.scala-lang.org/u/Iltotore)\
**Post date:** [June 2, 2021, 6:12am UTC](https://users.scala-lang.org/t/coursier-bloop-another-build-tool/7507/7 "2021-06-02T06:12:03Z")

</div>

Plus Mill supports Bloop and BSP

---

<div class="post-metadata">

**Author:** ![julian-a-avar-c](https://users.scala-lang.org/user_avatar/users.scala-lang.org/julian-a-avar-c/32/2881_2.png) [@julian-a-avar-c](https://users.scala-lang.org/u/julian-a-avar-c)\
**Post date:** [January 18, 2024, 7:01pm UTC](https://users.scala-lang.org/t/coursier-bloop-another-build-tool/7507/8 "2024-01-18T19:01:58Z")

</div>

There is [Bleep](https://bleep.build/docs/), it’s much more lightweight than mill or sbt, and it pretty much looks like a `Cargo.toml` or `package.json`. I would say I actually really like the `scala-cli -> bleep -> mill` transition. In fact since they are all so independent, I could go `bleep -> scala-cli -> mill -> mill + sbt`. Scala’s build system are simply **powerful** , now they’re usable too — except for sbt… But hey! They’re working on 2.0, so one can have their hopes up, right?
