-
Notifications
You must be signed in to change notification settings - Fork 3
/
settings.gradle.kts
46 lines (43 loc) · 1.19 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
pluginManagement {
repositories {
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
System.setProperty("maven.repo.local", rootDir.resolve("local").absolutePath)
repositories {
mavenLocal()
maven(uri(rootDir.resolve("repo")))
google()
mavenCentral()
maven("https://api.xposed.info/")
}
}
rootProject.name = "HookFanqie"
listOf("app", "hook")
.filter { rootDir.resolve(it).isDirectory }
.forEach {
include(":$it")
}
rootDir.resolve("sdk")
.takeIf { it.isDirectory }
.let { it?.listFiles() ?: emptyArray() }
.filter { it.isDirectory }
.map { it.name }
.forEach {
include(":sdk:$it")
}
apply(rootDir.resolve("gradle/props.gradle.kts"))
apply(rootDir.resolve("gradle/project.gradle.kts"))
gradle.extra.properties.toSortedMap().forEach { (key, value) ->
println("$key => $value")
}