Difference apply from vs apply plugin

前端 未结 2 1750
甜味超标
甜味超标 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:17

    apply from:

    • calls the script directly as if it was part of the build file

    See https://docs.gradle.org/current/userguide/plugins.html#sec:script_plugins

    apply plugin:

    • calls the Plugin.apply() interface

    See https://docs.gradle.org/current/userguide/plugins.html#sec:binary_plugins

提交回复
热议问题