Add Gradle build to Figures sample