I Prefer Maven To SBT as Scala Build Tool

王福强

2021-10-28


To work with scala with pleasure and effeciency, I had tried SBT, maven, gradle from time to time, but at last I stay with Maven as my main build tool for scala.

Although SBT is popular in scala community, and I had put a lot of time and attention to it before, let’s say:

But at last, I found, it’s tricky to follow up the version and evolution of this tool, so I stay with maven finally, and with springboot’s maven plugin, everything gets simple:

  1. maven with scala-maven-plugin build java and scala;
  2. springboot maven plugin package the whole application into an executable jar(that means, a simple command java -jar xyz.jar will launch the application without any surprises);
  3. systemd with a consistent unit file deploys application with ease;

I do know docker and kubernetes, but most the time, springboot + maven + systemd get my things done.

Granularity matters, if I run a startup with few projects, kubernetes is too heavey, with JVM, docker container seems not so necessary, maybe with GraalVM and its native image or ScalaNative, docker container or kubernetes make some sense.

It’s not always the best way, but it’s my way.


>>>>>> 更多阅读 <<<<<<


欢迎加入「福强私学」

跨越2190个日夜,始终坚持“实践 + 原创”打造的715125字专属知识库,囊括了(但不限于)从职场、技术、管理与商业等多个板块的内容。

  • 一个ChatGPT触达不到的地方
  • 一个带你超越AI/人工智能的地方
  • 一个与你一起成长的地方

https://afoo.me/kb.html


开天窗,拉认知,订阅「福报」,即刻拥有自己的全模态人工智能。

订阅「福报」