-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inherit settings when loading build file
Centralise the logic for inheriting settings from the project section and base modules. The inheritance step is now performed when build files are loaded. As a consequence, many functions do not need to take a reference to the project definition or parent modules anymore. This greatly simplifies the code for generating Bloop/IDEA configurations, and makes the logic less error-prone. The build's project section is now entirely optional and its fields can be set on modules instead. Now, Scala options can be extended in platform modules, for example to set additional flags required by the Scala.js compiler such as `-P:scalajs:sjsDefinedByDefault`. Furthermore, every module is compiled with the Scala version and the options it was defined with. Therefore, it is not possible to depend on modules which have an incompatible Scala version. For example, including a 2.12 module in a 2.13 module will trigger an error. Closes #18.
- Loading branch information
Showing
31 changed files
with
1,738 additions
and
1,253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.