Running gradle assemble hangs on Resolving dependencies ':runtime'

I've been trying to compile the code by running gradle assemble on the command line. And it hangs invariably on

$gradle assemble

Loading > buildSrc > Resolving dependencies ':runtime'

I even tried loading the project via the IntelliJ but it still hangs when trying to resolve dependencies. Is there something that i'm missing ?

Thanks in advance for your help.