generated from LinXueyuanStdio/TimeCatModuleTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
59 lines (51 loc) · 2.03 KB
/
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
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
buildscript {
def moduleConfigProps = new Properties()
File moduleConfig = rootProject.file("moduleConfig.properties")
if (moduleConfig.exists()) {
moduleConfigProps.load(new FileInputStream(moduleConfig))
}
def localMavenDir = file(moduleConfigProps.localMavenPath)
ext.kotlin_version = '1.4.20'
repositories {
google()
jcenter()
maven { url "file://${localMavenDir.absolutePath}" }
maven { url "https://jitpack.io" }
maven { url "https://plugins.gradle.org/m2/" }
maven { url "https://dl.bintray.com/umsdk/release" }
// maven { url "https://github.com/LinXueyuanStdio/MLang/raw/main/dist/" }
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
// 最低支持 java7 的版本
classpath "com.github.xiaojinzi123.Component:component-plugin:1.8.8-androidx"
classpath "com.github.breadmoirai:github-release:2.2.12"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
def moduleConfigProps = new Properties()
File moduleConfig = rootProject.file("moduleConfig.properties")
if (moduleConfig.exists()) {
moduleConfigProps.load(new FileInputStream(moduleConfig))
}
def localMavenDir = file(moduleConfigProps.localMavenPath)
def localGradleDir = file(moduleConfigProps.localGradlePath)
allprojects {
repositories {
maven { url "file://${localMavenDir.absolutePath}" }
google()
jcenter()
maven { url "https://jitpack.io" }
maven { url "https://plugins.gradle.org/m2/" }
maven { url "https://dl.bintray.com/umsdk/release" }
maven { url 'https://developer.huawei.com/repo/'}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
apply from: "${localGradleDir}/deps.gradle"
apply from: "${rootDir}/gradle/config.gradle"