简体   繁体   English

SBT 多项目构建中的 build.properties

[英]build.properties in SBT multi-project build

I have a multi project build, the structure of the project looks like this:我有一个多项目构建,项目的结构如下所示:

  • project项目

    • build.properties build.properties

    • plugins.sbt插件.sbt

  • subprojects子项目

    • subProj1子项目1

      • project/项目/

        • build.properties build.properties

Now can we have 2 different sbt versions in 2 build.properies files?现在我们可以在 2 个 build.properies 文件中有 2 个不同的 sbt 版本吗? Like we use sbt 0.13 in root project and 1.3 under subProj1?就像我们在根项目中使用 sbt 0.13 和 subProj1 下的 1.3 一样? Or do sbt ignores the build.properties file for subprojects like it uses to do with plugins.sbt ?还是 sbt 会忽略子项目的 build.properties 文件,就像它用于处理plugins.sbt一样?

build.properties is only relevant to the sbt launcher script which downloads appropriate version artefacts. build.properties仅与下载适当版本工件的 sbt启动器脚本相关。 After sbt "mother ship" is launched then sbtVersion should not be modified anymore as per inspect sbtVesion : sbt “母船”启动后,不应再根据inspect sbtVesion sbtVersion

> inspect sbtVersion
[info] Setting: java.lang.String = 1.4.7
[info] Description:
[info]  Provides the version of sbt.  This setting should not be modified.

Considering project structure in OP, after sbt is launched at the root level, then build.properties files other than <root>/project/build.properties will be ignored.考虑到 OP 中的项目结构,sbt 在根级别启动后,将忽略<root>/project/build.properties以外的build.properties文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM