58 lines
2.3 KiB
Groovy
58 lines
2.3 KiB
Groovy
import groovy.json.JsonSlurper
|
|
import org.apache.groovy.json.internal.LazyMap
|
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
buildscript {
|
|
ext.kotlin_version = "1.6.0"
|
|
repositories {
|
|
mavenCentral()
|
|
google()
|
|
maven { url "https://maven.aliyun.com/repository/apache-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/grails-core" }
|
|
maven { url "https://maven.aliyun.com/repository/jcenter" }
|
|
maven { url "https://maven.aliyun.com/repository/public" }
|
|
maven { url "https://maven.aliyun.com/repository/spring" }
|
|
maven { url "https://maven.aliyun.com/repository/spring-plugin" }
|
|
maven { url "https://repo.huaweicloud.com/repository/maven" }
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:7.2.0-alpha05'
|
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
classpath "com.jakewharton:butterknife-gradle-plugin:10.2.1"
|
|
|
|
classpath "org.codehaus.groovy:groovy-json:3.0.8"
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
maven { url "https://jitpack.io" }
|
|
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
|
|
mavenCentral()
|
|
maven { url "https://maven.aliyun.com/repository/apache-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/grails-core" }
|
|
maven { url "https://maven.aliyun.com/repository/jcenter" }
|
|
maven { url "https://maven.aliyun.com/repository/public" }
|
|
maven { url "https://maven.aliyun.com/repository/spring" }
|
|
maven { url "https://maven.aliyun.com/repository/spring-plugin" }
|
|
maven { url "https://repo.huaweicloud.com/repository/maven" }
|
|
google()
|
|
}
|
|
}
|
|
|
|
task clean(type: Delete) {
|
|
delete rootProject.buildDir
|
|
}
|
|
|
|
ext {
|
|
versions = new JsonSlurper().parse(file("./project-versions.json")) as LazyMap
|
|
}
|