Modifying build.gradle to build it as a library project