-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathsettings.gradle
More file actions
executable file
·48 lines (41 loc) · 1.76 KB
/
settings.gradle
File metadata and controls
executable file
·48 lines (41 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
* "Build scan" - является общей и централизованной записью сборки которая дает представление о том, что произошло и почему.
* С этим плагином вы можете опубликовать свои записи сборки на https://scans.gradle.com бесплатно.
*
* пример использования: Выполните ./gradlew assembleRelease --scan
* и перейдите по зеленой ссылке в конце сборки, для просмотра результатов сканирования.
*/
plugins {
id "com.gradle.enterprise" version "3.3.4"
}
gradleEnterprise {
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
allowUntrustedServer = true
}
}
import groovy.json.JsonSlurper
include ':android-standard-version-plugin'
// used files
def COMPONENTS_JSON_FILE = './buildSrc/components.json'
// reading components.json
def componentsJson = file(COMPONENTS_JSON_FILE)
def parsedJson = new JsonSlurper().parseText(componentsJson.text)
parsedJson.forEach { component ->
def disabled = component.disabled?.toBoolean() ?: false
if (component.libs != null && !disabled) {
component.libs.forEach { lib ->
def moduleName = ":${lib.name}"
include moduleName
project(moduleName).projectDir = new File("${component.dir}/${lib.dir}")
}
}
if (component.enabled_samples) {
component.samples.forEach { sample ->
def moduleName = ":${sample.name}"
include moduleName
project(moduleName).projectDir = new File("${component.dir}/${sample.dir}")
}
}
}