Scala 官方的方案是 sbt,而 Gradle 本身自带了很多语言的插件,其中就包括 Scala。
官方的是 scala-cli, 集成进 Scala 3.5.0 了。
scala-cli.能导出 SBT 和 Mill 项目,不支持 Gradle,可见一斑了。
市占率 SBT >> Mill >> Gradle。
Gradle 很尴尬,Java 项目用 Maven 更多。
Gradle 并不尴尬,它可以很轻松的支持多语言和 GraalVM,并且有越来越多的项目只提供 Gradle 模板。现在 Maven 看着多只是因为 Legacy Code Base,事实上 Gradle 在 Java 领域超过 Maven 只是时间问题,连 Java 领域的常青树 Spring 都在离开 Mavem。
1 个赞
Industry adoption
Maven is more industry-adopted than Gradle. In fact, Maven is currently the most popular Java build automation tool on the market. According to a Snyk study, it’s used by over 78% of Java developers. Gradle ranks second on the market with 38% of users.
Spring 用 Gradle 很多年了。
对 Gradle 印像最深的是被墙的欲仙欲死。。。