sbt ThisBuild范围是否有块语法?

时间:2018-11-25 23:13:20

标签: scala sbt

给出一个多模块build.sbt

ThisBuild / organization := "com.mycompany"
ThisBuild / version := "1.0.0"
ThisBuild / scalaVersion := "2.12.7"
// more global settings

ThisBuild范围在每一行上重复。有没有办法做到以下几点?

ThisBuild {
  organization := "com.mycompany"
  version := "1.0.0"
  scalaVersion := "2.12.7"
}

1 个答案:

答案 0 :(得分:1)

可能最接近的是:

Coordinates