-
Notifications
You must be signed in to change notification settings - Fork 0
/
flutter_build.gradle
29 lines (25 loc) · 1.08 KB
/
flutter_build.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
//TODO:导入flutter使用,# PREFER_PROJECT → 工程设置了仓库优先使用工程配置的,忽略settings
buildscript {
repositories {
maven { url = uri("https://maven.aliyun.com/repository/central") }
maven { url = uri("https://maven.aliyun.com/repository/public") }
maven { url = uri("https://maven.aliyun.com/repository/gradle-plugin") }
maven { url = uri("https://repo.huaweicloud.com/repository/maven") }
maven { url = uri("https://jitpack.io") }
google()
mavenCentral()
gradlePluginPortal()
}
}
allprojects {
repositories {
maven { url = uri("https://maven.aliyun.com/repository/central") }
maven { url = uri("https://maven.aliyun.com/repository/public") }
maven { url = uri("https://maven.aliyun.com/repository/gradle-plugin") }
maven { url = uri("https://repo.huaweicloud.com/repository/maven") }
maven { url = uri("https://jitpack.io") }
google()
mavenCentral()
}
buildDir = new File(rootDir, "gradle-build/${path.replaceAll(':', '/')}")
}