forked from opensearch-project/opensearch-migrations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
79 lines (69 loc) · 2.21 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
/*
* This file was generated by the Gradle 'init' task.
*
* The settings file is used to specify which projects to include in your build.
*
* Detailed information about configuring a multi-project build in Gradle can be found
* in the user manual at https://docs.gradle.org/8.0.2/userguide/multi_project_builds.html
*/
import java.nio.file.Paths
plugins {
id("com.gradle.develocity") version("3.18.1")
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.7.0'
}
void addSubProjects(String path, File dir) {
if (dir.isDirectory() == false) {
return;
}
if (dir.name == 'buildSrc') {
return;
}
if (new File(dir, 'build.gradle').exists() == false) {
return;
}
if (findProject(dir) != null) {
return;
}
final String projectName = "${path}:${dir.name}"
include projectName
project(projectName).projectDir = dir
for (File subdir : dir.listFiles()) {
addSubProjects(projectName, subdir)
}
}
rootProject.name = 'OpensearchMigrations'
include 'awsUtilities'
include 'commonDependencyVersionConstraints'
include 'coreUtilities'
include 'libraries:kafkaCommandLineFormatter'
include 'transformation'
include 'testHelperFixtures'
include 'RFS'
include 'CreateSnapshot'
include 'dashboardsSanitizer'
include 'MetadataMigration'
include 'DocumentsFromSnapshotMigration'
include 'TrafficCapture:captureKafkaOffloader'
include 'TrafficCapture:captureOffloader'
include 'TrafficCapture:captureProtobufs'
include 'TrafficCapture:dockerSolution'
include 'TrafficCapture:nettyWireLogging'
include 'TrafficCapture:trafficCaptureProxyServer'
include 'TrafficCapture:trafficCaptureProxyServerTest'
include 'TrafficCapture:trafficReplayer'
addSubProjects(':TrafficCapture', Paths.get(rootProject.projectDir.getPath(), 'TrafficCapture', 'transformationPlugins').toFile())
if (System.getenv().containsKey("OS_MIGRATIONS_GRADLE_SCAN_TOS_AGREE_AND_ENABLED")) {
develocity {
buildScan {
publishing.onlyIf { true }
termsOfUseUrl = "https://gradle.com/help/legal-terms-of-use"
termsOfUseAgree = "yes"
}
}
} else {
develocity {
buildScan {
publishing.onlyIf { false }
}
}
}