I started using gradle very recently. It is so much more easy to understand than maven. I guess I am not intelligent enough for maven. Gradle also follows a very similar directory structure to maven. But I wanted to change it as per my projects directory structure.
All I had to do was customize the sourceSets.
I could not find this information straight away (especially the test sources location). So I am posting it here for future reference.