From 505d0cb33d7ad04e52263f5754e4fa23db4b5777 Mon Sep 17 00:00:00 2001 From: Drew Inglis Date: Fri, 11 Jun 2021 13:12:16 -0700 Subject: [PATCH] Include Java source files in project fingerprints (#87) Simple fix -- add `:java-source-paths` to the list of file paths to check when fingerprinting. --- CHANGELOG.md | 4 ++++ src/lein_monolith/task/fingerprint.clj | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0769528..0a4c806 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,10 @@ This project adheres to [Semantic Versioning](http://semver.org/). a double-wildcard `.../**` syntax. [#85](https://github.com/amperity/lein-monolith/pull/85) +### Fixed +- Fingerprinting will now correctly track Java files as project source files. + [#87](https://github.com/amperity/lein-monolith/pull/87) + ## [1.6.1] - 2020-10-09 diff --git a/src/lein_monolith/task/fingerprint.clj b/src/lein_monolith/task/fingerprint.clj index bb9a1cb..b25993e 100644 --- a/src/lein_monolith/task/fingerprint.clj +++ b/src/lein_monolith/task/fingerprint.clj @@ -96,7 +96,7 @@ (->> (concat [project] (vals (:profiles project))) - (mapcat (juxt :source-paths :test-paths :resource-paths)) + (mapcat (juxt :source-paths :java-source-paths :test-paths :resource-paths)) (mapcat identity) (map (fn absolute-file [dir-str]