forked from HujiangTechnology/gradle_plugin_android_aspectjx
-
Notifications
You must be signed in to change notification settings - Fork 52
/
settings.gradle
36 lines (36 loc) · 1.11 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
pluginManagement {
resolutionStrategy {
eachPlugin {
println "requested:$requested"
switch (requested.id.id) {
// agp不是所有版本都能通过plugins方式拉取到,统一采用classpath方式拉取
case "com.android.application":
case "com.android.library":
def agpModule = "com.android.tools.build:gradle:${requested.version}"
useModule(agpModule)
break
// case "io.github.wurensen.android-aspectjx":
// def agpModule = "io.github.wurensen:gradle-android-plugin-aspectjx:${requested.version}"
// useModule(agpModule)
// break
}
}
}
repositories {
mavenLocal()
gradlePluginPortal()
google()
mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.PREFER_PROJECT)
repositories {
google()
mavenCentral()
}
}
include ':aspectjx'
include ':app'
include ':testlibrary'
include ':javalibrary'