If a subproject sets compositeSearchHeight = 2, but it's parent project has excludeFromCompositeBuild = true, the project essentially fails to include itself, resulting in an unintelligible error.
FAILURE: Build failed with an exception.
* Where:
Settings file 'F:\GitRepos\ihmc-java-ros2-communication\ihmc-ros2-library\settings.gradle' line: 16
* What went wrong:
A problem occurred evaluating settings 'ihmc-ros2-library'.
> kotlin.KotlinNullPointerException (no error message)
Caused by: kotlin.KotlinNullPointerException
at us.ihmc.build.IHMCCompositeBuildAssembler.propertiesFromKebabCasedName(IHMCCompositeBuildAssembler.kt:277)
at us.ihmc.build.IHMCCompositeBuildAssembler.findDirectKebabCasedDependencies(IHMCCompositeBuildAssembler.kt:81)
at us.ihmc.build.IHMCCompositeBuildAssembler.findTransitivesRecursive(IHMCCompositeBuildAssembler.kt:68)
Action
Make the error message better so the user can fix
OR
Detect that it never makes sense to exclude yourself and do it anyway
OR
If a subproject sets
compositeSearchHeight = 2
, but it's parent project hasexcludeFromCompositeBuild = true
, the project essentially fails to include itself, resulting in an unintelligible error.Action