diff --git a/docs/guide-zh-CN.md b/docs/guide-zh-CN.md index 80710c6..ba57794 100644 --- a/docs/guide-zh-CN.md +++ b/docs/guide-zh-CN.md @@ -213,6 +213,19 @@ sweetProperty { // 配置 "buildScript" } } + // 同时进行多个项目与子项目配置 + // 在方法参数中填入需要配置的项目完整名称数组来配置每个对应的项目 + project(":modules:library1", ":modules:library2") { + all { + // 配置 "all" + } + sourcesCode { + // 配置 "sourcesCode" + } + buildScript { + // 配置 "buildScript" + } + } } ``` diff --git a/docs/guide.md b/docs/guide.md index 9692b0e..6fa7ba7 100644 --- a/docs/guide.md +++ b/docs/guide.md @@ -227,7 +227,20 @@ sweetProperty { // Configure "buildScript" } } -} + // Configure multiple projects and sub-projects at the same time + // Fill in the method parameters with the array of complete names of the projects that need to be configured + // to configure each corresponding project + project(":modules:library1", ":modules:library2") { + all { + // Configure "all" + } + sourcesCode { + // Configure "sourcesCode" + } + buildScript { + // Configure "buildScript" + } + } ``` If you want to use it in Groovy DSL, please change the `=` of all variables to spaces, delete the `is` in front of `Enable` and lowercase `E`.