Repository navigation
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
88 lines (79 loc) · 3.21 KB
/
Copy pathsettings.gradle.kts
File metadata and controls
88 lines (79 loc) · 3.21 KB
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
rootProject.name = "AndroidShowcase"
// https://developer.android.com/studio/build?hl=zh-cn#settings-file
pluginManagement {
/**
* The pluginManagement {repositories {...}} block configures the
* repositories Gradle uses to search or download the Gradle plugins and
* their transitive dependencies. Gradle pre-configures support for remote
* repositories such as JCenter, Maven Central, and Ivy. You can also use
* local repositories or define your own remote repositories. The code below
* defines the Gradle Plugin Portal, Google's Maven repository,
* and the Maven Central Repository as the repositories Gradle should use to
* look for its dependencies.
*/
repositories {
gradlePluginPortal()
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
maven { url = uri("https://maven.aliyun.com/repository/google") }
// Tencent Gradle mirrors
maven {
url =
uri(
"https://mirrors.cloud.tencent.com/nexus/repository/gradle-plugins/",
)
}
maven { url = uri("https://mirrors.tuna.tsinghua.edu.cn/maven") }
// AliYun Gradle mirrors
maven { url = uri("https://maven.aliyun.com/repository/gradle-plugin") }
}
}
dependencyResolutionManagement {
/**
* The dependencyResolutionManagement {repositories {...}}
* block is where you configure the repositories and dependencies used by
* all modules in your project, such as libraries that you are using to
* create your application. However, you should configure module-specific
* dependencies in each module-level build.gradle file. For new projects,
* Android Studio includes Google's Maven repository and the
* Maven Central Repository by default,
* but it does not configure any dependencies (unless you select a
* template that requires some).
*/
@Suppress("UnstableApiUsage")
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
@Suppress("UnstableApiUsage")
repositories {
google()
mavenCentral {
isAllowInsecureProtocol = true
}
maven("https://plugins.gradle.org/m2/")
maven("https://maven.java.net/content/groups/public/")
// https://github.com/airbnb/lottie/blob/master/android-compose.md
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots/") }
maven("https://jitpack.io")
maven("https://maven.aliyun.com/repository/public")
maven("https://maven.aliyun.com/repository/google")
maven("https://maven.aliyun.com/repository/central")
maven("https://mirrors.cloud.tencent.com/gradle/")
maven("https://mirrors.cloud.tencent.com/nexus/repository/maven-public/")
}
}
// https://docs.gradle.org/7.0/release-notes.html
// Type-safe project accessors
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
include(
":app",
":feature_base",
":feature_discovery",
":feature_my",
":feature_community",
":feature_main_drawer",
)