Skip to content

Commit

Permalink
ProjectGroup.leafSubprojectSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Janusz committed Mar 18, 2023
1 parent 33dffc9 commit 5211fa9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/scala/com/github/ghik/plainsbt/ProjectGroup.scala
Expand Up @@ -31,6 +31,13 @@ abstract class ProjectGroup(
*/
def subprojectSettings: Seq[Def.Setting[_]] = Seq.empty

/**
* Settings shared by all subprojects defined via [[mkSubProject]] in this [[ProjectGroup]] and all its
* child [[ProjectGroup]]s. This is like [[commonSettings]] but excludes all the intermediate aggregating projects,
* i.e. the root projects of each [[ProjectGroup]].
*/
def leafSubprojectSettings: Seq[Def.Setting[_]] = Seq.empty

/**
* Settings shared by all the projects defined in this [[ProjectGroup]], including its root project
* (via [[mkRootProject]]) and directly defined subprojects (via [[mkSubProject]]).
Expand Down Expand Up @@ -96,10 +103,12 @@ abstract class ProjectGroup(
.withId(subProjectId(project.id))
.settings(commonSettings)
.settings(subprojectSettings)
.settings(leafSubprojectSettings)
.settings(directCommonSettings)
.settings(directSubprojectSettings)
.settings(parent.mapOr(Nil, _.commonSettings))
.settings(parent.mapOr(Nil, _.subprojectSettings))
.settings(parent.mapOr(Nil, _.leafSubprojectSettings))
}

/**
Expand Down

0 comments on commit 5211fa9

Please sign in to comment.