LPS-43715 Remove all the logic which has been moved to the common script java.gradle and include the ability to support multimodule projects with a depth deeper than 1