ihmcrobotics / ihmc-build

Composite build and IDE classpath seperation support for JVM Gradle projects.
Apache License 2.0
5 stars 4 forks source link

Error when compositeSearchHeight is higher than a excludeMe == true #51

Closed calvertdw closed 6 years ago

calvertdw commented 6 years ago

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

calvertdw commented 6 years ago

Fixed in 0.13.3