Adopt gradle for compiling