-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.gradle
46 lines (35 loc) · 1.4 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
rootProject.name = 'LegacyNativeExample'
include 'static_lib'
include 'subsystem_a:util_1'
if(org.gradle.nativeplatform.platform.internal.DefaultNativePlatform.currentOperatingSystem.isWindows()) {
include 'subsystem_a:win_mfc_a'
}
include 'subsystem_b:server_1'
include 'legacy_installer'
// YAIM - Yet Another Installer Mechanism
include 'inst_three'
// old style self extracting zip based installers, currently only on windows..
if(org.gradle.nativeplatform.platform.internal.DefaultNativePlatform.currentOperatingSystem.isWindows()) {
include 'zsfx_inst:zsfx_one'
include 'zsfx_inst:zsfx_two'
}
// To avoid every gradle file being named 'build.gradle', this bit of code
// will tell gradle to look for PROJNAME.gradle.
// from http://www.developerphil.com/renaming-your-gradle-build-files/
void rename_build_file_to_module_name(project) {
project.buildFileName = "${project.name}.gradle"
project.children.each { child -> rename_build_file_to_module_name(child) }
}
// Change the build.gradle filename for each subproject to use it's name instead of 'build.gradle'.
rootProject.children.each { subproject -> rename_build_file_to_module_name(subproject) }
plugins.withId('com.gradle.enterprise') {
gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
if (System.getenv('CI')) {
tag 'CI'
termsOfServiceAgree = "yes"
}
}
}
}