jboylee
jboylee

Reputation: 1

How does Gradle build android using plugin?

I understand as Gradle is build tool and android provide plugin for android build.

When Gradle meet "apply plugin : 'android'" gradle-0.13.3.jar will be downloaded somewhere. right??

But I can not find android plugin anywhere.

How does Gradle build android using plugin ??

Upvotes: 0

Views: 62

Answers (1)

Peter Niederwieser
Peter Niederwieser

Reputation: 123910

apply plugin: "xyz" applies a plugin that's already on the build class path. To get a third-party plugin such as the Android plugin on the build class path, a plugin dependency has to be specified in a buildscript block. For details on this, check the Gradle User Guide or the Android Gradle plugin docs.

(Gradle 2.1 introduces a new plugins block that allows to apply plugins available from http://plugins.gradle.org/ without specifying a plugin dependency.)

Upvotes: 2

Related Questions