-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild.gradle
More file actions
35 lines (32 loc) · 1.24 KB
/
build.gradle
File metadata and controls
35 lines (32 loc) · 1.24 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.8.0'
repositories {
google()
jcenter()
mavenCentral()
maven {url 'https://developer.huawei.com/repo/'}
maven { url'https://maven.aliyun.com/repository/google' }
maven { url'https://maven.aliyun.com/repository/central' }
maven { url'https://maven.aliyun.com/repository/public' }
maven { url'https://maven.aliyun.com/repository/gradle-plugin' }
maven { url "https://jitpack.io" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.android.tools.build:gradle:7.4.2"
// for publishing guard to maven central
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.18.0'
// huawei push
classpath 'com.huawei.agconnect:agcp:1.6.0.300'
}
}
allprojects {
configurations.all {
resolutionStrategy {
force "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
force "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
force "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
}
}
}