Difference apply from vs apply plugin

Ari picture Ari · Mar 31, 2015 · Viewed 22.3k times · Source

Is there a difference except that:

apply from: - gets the (plugin).gradle from a URL

apply plugin: - gets the (plugin).gradle from the gradle plugin server

Answer

Amnon Shochot picture Amnon Shochot · Mar 31, 2015

The actual difference between apply from: and apply plugin: is that the former is to be used for script plugins given a path to the local file system or a URL to a remote location, and the latter is used for binary plugins using the plugin id.

You can read more about it in Gradle documentation here.