-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Discover child module versions automatically #29
This involved quite a bit of refactoring of the progeny stuff into common so that versionization could use it, too. It looks for the top-most project and then all of that project's children. This can lead to an infinite loop when middleware is invoked so we introduce some macros to disable middleware when parents and children are being read. Unfortunately, discovering all the children can add quite a bit of time to the build, almost double for some of the tasks in the Immutant build. Parking on a branch for now.
- Loading branch information
1 parent
10c7eff
commit 1578dd1
Showing
10 changed files
with
104 additions
and
78 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
(ns lein-modules.plugin | ||
(:use [lein-modules.versionization :only (versionize)] | ||
[lein-modules.inheritance :only (inherit)] | ||
[lein-modules.common :only (config)])) | ||
[lein-modules.common :only (with-middleware)])) | ||
|
||
(defn middleware | ||
"Implicit Leiningen middleware, guarding recursive | ||
middleware calls with a metadata flag. | ||
See https://github.com/technomancy/leiningen/issues/1151" | ||
[project] | ||
(if (-> project meta ::middleware-applied) | ||
project | ||
(with-middleware project | ||
(-> project | ||
(vary-meta assoc ::middleware-applied true) | ||
inherit | ||
versionize | ||
(vary-meta dissoc ::middleware-applied)))) | ||
versionize))) | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
(defproject sibling "0.1.0-SNAPSHOT" | ||
(defproject sibling "0.2.0-SNAPSHOT" | ||
:description "sibling" | ||
|
||
:profiles {:by-child {:modules {:parent nil}}}) |
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