Unable to add subproject to another subproject buildscript classpath dependency

I have a subprojectA and subprojectB. There are some artifacts from subprojectA that i need to build subprojectB. It seems that after upgrading to 7.3, i can no longer configure it like this.
Getting the error ‘Cannot transition to state Configure as already transitioning to this state.’
May I know if there is an alternative or a solution to the error?