From 2337d5710bb098f02a7d6f8c1c4ddb0204ad4aab Mon Sep 17 00:00:00 2001 From: fankesyooni Date: Sat, 4 Nov 2023 01:56:13 +0800 Subject: [PATCH] docs: update guide --- docs/guide-zh-CN.md | 13 +++++++++++++ docs/guide.md | 15 ++++++++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) 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`.