API 文件 | PluginManagementSpec |
---|
設定如何解析外掛程式。
方法 | 描述 |
includeBuild(rootProject) | 在指定的路徑將外掛程式建置包含到複合建置中。包含的外掛程式建置可以貢獻設定和專案外掛程式。 |
includeBuild(rootProject, configuration) | 在指定的路徑將外掛程式建置包含到複合建置中,並提供組態。包含的外掛程式建置可以貢獻設定和專案外掛程式。 |
plugins(action) | 設定預設外掛程式版本。 |
repositories(repositoriesAction) | 定義要使用的外掛程式存放庫。 |
resolutionStrategy(action) | 設定外掛程式解析策略。 |
void
includeBuild
(String
rootProject)
在指定的路徑將外掛程式建置包含到複合建置中。包含的外掛程式建置可以貢獻設定和專案外掛程式。
void
includeBuild
(String
rootProject, Action
<ConfigurableIncludedPluginBuild
>
configuration)
Action
<ConfigurableIncludedPluginBuild
>在指定的路徑將外掛程式建置包含到複合建置中,並提供組態。包含的外掛程式建置可以貢獻設定和專案外掛程式。
void
plugins
(Action
<? super PluginDependenciesSpec
>
action)
Action
<? super PluginDependenciesSpec
>設定預設外掛程式版本。
void
repositories
(Action
<? super RepositoryHandler
>
repositoriesAction)
Action
<? super RepositoryHandler
>定義要使用的外掛程式存放庫。
void
resolutionStrategy
(Action
<? super PluginResolutionStrategy
>
action)
Action
<? super PluginResolutionStrategy
>設定外掛程式解析策略。