On 12/04/2012, at 9:18 AM, Eric Berry wrote:
> Hi Adam, and Peter,
> Thank you both for the quick response.
>
> Adam, guess we'll have to stick with the "apply from" scripts that have the
> extra code to check to see if the plugin is installed.
You shouldn't have to. Gradle will check this for you. You can just do:
buildscript {
repositories { mavenRepo url: "…" }
dependencies { classpath "com.chegg.corp.gradle:chegg-plugin:12.2" }
}
apply plugin: 'chegg-corp' // or apply plugin: com.chegg.corp.CheggCorpPlugin
--
Adam Murdoch
Gradle Co-founder
http://www.gradle.org
VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting
http://www.gradleware.com