Update sample build script configuration

Use the latest Gradle DSL configuration for defining dependencies