mirror of
https://github.com/HighCapable/SweetProperty.git
synced 2025-09-06 02:35:28 +08:00
docs: update guide
This commit is contained in:
@@ -213,6 +213,19 @@ sweetProperty {
|
|||||||
// 配置 "buildScript"
|
// 配置 "buildScript"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 同时进行多个项目与子项目配置
|
||||||
|
// 在方法参数中填入需要配置的项目完整名称数组来配置每个对应的项目
|
||||||
|
project(":modules:library1", ":modules:library2") {
|
||||||
|
all {
|
||||||
|
// 配置 "all"
|
||||||
|
}
|
||||||
|
sourcesCode {
|
||||||
|
// 配置 "sourcesCode"
|
||||||
|
}
|
||||||
|
buildScript {
|
||||||
|
// 配置 "buildScript"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@@ -227,7 +227,20 @@ sweetProperty {
|
|||||||
// Configure "buildScript"
|
// 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`.
|
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`.
|
||||||
|
Reference in New Issue
Block a user