sbt-cpd icon indicating copy to clipboard operation
sbt-cpd copied to clipboard

Does cpd4sbt support multi project builds?

Open marceloemanoel opened this issue 12 years ago • 5 comments

marceloemanoel avatar Dec 27 '13 15:12 marceloemanoel

Currently not really, no. - Though it should be relatively straightforward to add this, I hope. I'll look into it when I get the time.

jmhofer avatar Jan 28 '14 08:01 jmhofer

This would be nice addition.

MaikuMori avatar Aug 04 '14 11:08 MaikuMori

@jmhofer Currently I can't use cpd4sbt with my multi project build, I can pull request, Do you have guidance for adding support in multi project builds?

shanielh avatar Jul 10 '16 10:07 shanielh

I think the relevant setting is cpdSourceDirectories in Compile, which simply defaults to unmanagedSourceDirectories in Compile.

My first idea for an approach of multi-project builds probably would be to collect all the sub project source directories for this setting instead. We'd need to find out how to do that in sbt.

jmhofer avatar Jul 11 '16 11:07 jmhofer

However, if you want to configure cpd for each sub-project separately, this approach might be too simplistic.

jmhofer avatar Jul 11 '16 11:07 jmhofer