Add gradle build for core jar