PREVIEW: Migrate to gradle

Migration to gradle