-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
32 lines (29 loc) · 1.42 KB
/
build.gradle
File metadata and controls
32 lines (29 loc) · 1.42 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
buildscript {
ext.kotlin_version = '2.1.20' //kotlin版本
repositories {
//阿里云云效 Maven https://developer.aliyun.com/mvn/guide
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }//gradle-plugin 源地址 https://plugins.gradle.org/m2/
maven { url 'https://maven.aliyun.com/repository/public' }//central仓和jcenter仓的聚合仓 源地址 https://repo1.maven.org/maven2/ http://jcenter.bintray.com/
maven { url 'https://maven.aliyun.com/repository/google' }//google 源地址 https://maven.google.com/
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:8.3.2")
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
//阿里云云效 Maven https://developer.aliyun.com/mvn/guide
maven { url 'https://maven.aliyun.com/repository/public' }//central仓和jcenter仓的聚合仓 源地址 https://repo1.maven.org/maven2/ http://jcenter.bintray.com/
maven { url 'https://maven.aliyun.com/repository/google' }//google 源地址 https://maven.google.com/
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }//gradle-plugin 源地址 https://plugins.gradle.org/m2/
maven { url 'https://jitpack.io' }
google()
mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}