-
Notifications
You must be signed in to change notification settings - Fork 8
/
settings.gradle
104 lines (95 loc) · 3.3 KB
/
settings.gradle
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
pluginManagement {
includeBuild 'gradle/plugins/docs-gradle-plugin'
includeBuild 'gradle/plugins/jbake-gradle-plugin'
includeBuild 'gradle/plugins/documentation-kit-plugins'
includeBuild 'gradle/plugins/nokeebuild-plugins'
includeBuild 'gradle/plugins/nokeedocs-plugins'
includeBuild 'gradle/plugins/sample-kit-plugins'
}
plugins {
id 'dev.gradleplugins.gradle-plugin-development' version '1.6.8'
id 'nokeebuild.enterprise'
}
rootProject.name = 'gradle-native'
includeBuild 'subprojects/templates'
includeBuild 'gradle/plugins/docs-gradle-plugin'
includeBuild 'gradle/libraries/nokeetest-libraries'
includeBuild 'gradle/libraries/gradle-build-script'
includeBuild 'gradle/libraries/gradle-test-script'
/**
* Adds specified subproject path to this Gradle build.
*
* @param path the subproject path under {@literal subprojects} folder, must not be null
* @param closure a subproject {@link ProjectDescriptor} configuration closure, must not be null
*/
void subproject(String path, Closure closure = {}) {
def tokens = path.split('/')
def projectName = tokens.collect { name -> name.split('-').collect { it.capitalize() }.join().uncapitalize() }
def projectPath = projectName.join(':')
include(projectPath)
project(":${projectPath}").projectDir = file("subprojects/${path}")
project(":${projectPath}").buildFileName = "${tokens.join('-')}.gradle"
closure.delegate = project(":${projectPath}")
closure.resolveStrategy = Closure.DELEGATE_FIRST
closure.call(project(":${projectPath}"))
}
subproject('build-adapter-cmake')
subproject('build-adapter-xcode')
subproject('core-exec')
subproject('core-model')
subproject('core-model')
subproject('core-script')
subproject('core-utils')
subproject('distributions')
subproject('distributions/all')
subproject('distributions/bom')
subproject('distributions-local')
subproject('docs')
subproject('docs/exemplar-kit') {
buildFileName = 'exemplar-kit.gradle'
}
subproject('gradle-annotation')
subproject('gradle-api')
subproject('gradle-repository-shim')
subproject('gradle-shim')
subproject('ide-base')
subproject('ide-visual-studio')
subproject('ide-xcode')
subproject('internal-smoke-test')
subproject('internal-testing')
subproject('language-base')
subproject('language-c')
subproject('language-cpp')
subproject('language-native')
subproject('language-objective-c')
subproject('language-objective-cpp')
subproject('language-swift')
subproject('nokee-version-management')
subproject('platform-base')
subproject('platform-c')
subproject('platform-cpp')
subproject('platform-native')
subproject('platform-objective-c')
subproject('platform-objective-cpp')
subproject('platform-swift')
subproject('platform-ios')
subproject('platform-jni')
subproject('publishing-core')
subproject('runtime-base')
subproject('runtime-native')
subproject('runtime-darwin')
subproject('runtime-windows')
subproject('testing-base')
subproject('testing-native')
subproject('testing-xctest')
subproject('xcode-ide-kit')
subproject('universal-model-capability-variants')
ModuleDependency templates(Object notation) {
final ModuleDependency result = (ModuleDependency) buildscript.dependencies.create(notation)
result.capabilities { ModuleDependencyCapabilitiesHandler capabilities ->
capabilities.requireCapability("dev.nokee:${result.getName()}-templates:1.0")
}
}
gradle.allprojects {
project.ext.templates = this.&templates
}