use Gradle for building the main project

Change-Id: Ie0630edfcb82341abdeabdd50fca1d550495e5ad