mirror of
https://github.com/TonyJiangWJ/Auto.js.git
synced 2026-06-04 21:01:01 +08:00
49 lines
1.7 KiB
Groovy
49 lines
1.7 KiB
Groovy
import groovy.json.JsonSlurper
|
||
|
||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||
|
||
buildscript {
|
||
ext.kotlin_version = '1.9.0'
|
||
repositories {
|
||
mavenCentral()
|
||
google()
|
||
maven { url "https://maven.aliyun.com/repository/central" }
|
||
maven { url "https://maven.aliyun.com/repository/google" }
|
||
maven { url "https://maven.aliyun.com/repository/gradle-plugin" }
|
||
maven { url "https://maven.aliyun.com/repository/jcenter" }
|
||
maven { url "https://maven.aliyun.com/repository/public" }
|
||
}
|
||
dependencies {
|
||
classpath 'com.android.tools.build:gradle:7.2.2'
|
||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||
classpath 'com.jakewharton:butterknife-gradle-plugin:10.2.3'
|
||
classpath 'org.codehaus.groovy:groovy-json:3.0.8'
|
||
}
|
||
}
|
||
|
||
allprojects {
|
||
repositories {
|
||
mavenCentral()
|
||
google()
|
||
maven { url "https://jitpack.io" }
|
||
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
|
||
maven { url "https://maven.aliyun.com/repository/central" }
|
||
maven { url "https://maven.aliyun.com/repository/google" }
|
||
maven { url "https://maven.aliyun.com/repository/gradle-plugin" }
|
||
maven { url "https://maven.aliyun.com/repository/jcenter" }
|
||
maven { url "https://maven.aliyun.com/repository/public" }
|
||
}
|
||
}
|
||
|
||
task clean(type: Delete) {
|
||
delete rootProject.buildDir
|
||
}
|
||
|
||
ext {
|
||
versions = new JsonSlurper().parse(file('./project-versions.json'))
|
||
ext.junit_version = '4.13.2'
|
||
// 高版本androidx库在不同的Android版本下有兼容性问题,因此这里锁定较低版本的库
|
||
ext.appcompat_version = '1.4.1'
|
||
ext.material_version = '1.4.0'
|
||
}
|