// tag::use-plugin[]
// tag::use-task[]
buildscript {
    repositories {
        maven {
// END SNIPPET use-plugin
// END SNIPPET use-task
            def producerName = findProperty('producerName') ?: 'plugin'
            def repoLocation = "../$producerName/build/repo"
// START SNIPPET use-plugin
// START SNIPPET use-task
            url = uri(repoLocation)
        }
    }
    dependencies {
        classpath group: 'org.gradle', name: 'customPlugin',
				  version: '1.0-SNAPSHOT'
    }
}
// end::use-task[]
apply plugin: 'org.samples.greeting'
// end::use-plugin[]
// tag::use-task[]

task greeting(type: org.gradle.GreetingTask) {
    greeting = 'howdy!'
}
// end::use-task[]
