Build library and sample with Gradle