Difference apply from vs apply plugin

前端 未结 2 1748
甜味超标
甜味超标 2021-02-05 02:56

Is there a difference except that:

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

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

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-05 03:22

    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.

提交回复
热议问题