Give error if a Module Name does not match Gradle project and source set name
Closed this issue · 0 comments
jjohannes commented
The logic to discover other Modules in the multi-project is based on the assumption that the Module Name is structured as follows:
<prefix>.<project-name>.<source-set-name>
If -
or .
or CamelCase
separation is used in project or source set name it's mapped to .
separation in the Module Name.
E.g. The module in my-project/src/testFixtures/java
should have the name: <prefix>.my.project.test.fixtures
If the Module Name is not following this, the discovery of some other local modules does not work. Which is very confusing.
Instead we should enforce the naming by giving an error if the Module Name does not match the pattern.
Opt out: moduleNameCheck.set(false)