Converting to gradle for builds.