Reputation: 1470
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
Upvotes: 46
Views: 38008
Reputation: 9356
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.
Upvotes: 38
Reputation: 1470
apply from:
See https://docs.gradle.org/current/userguide/plugins.html#sec:script_plugins
apply plugin:
See https://docs.gradle.org/current/userguide/plugins.html#sec:binary_plugins
Upvotes: 34