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.versions = [ 'junit' : '4.13.2', 'glide' : '4.12.0', 'kotlin' : '1.6.10', 'leakcanary' : '2.8.1', 'annotations' : '4.8.0', 'butterKnife' : '10.2.3', // TODO upgrade to 3.x (more difficult than expected) 'materialDialogs': '0.9.6.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' } maven { url 'https://repo.huaweicloud.com/repository/maven' } } dependencies { classpath 'com.android.tools.build:gradle:7.2.0-beta01' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}" 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/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' } maven { url 'https://repo.huaweicloud.com/repository/maven' } google() } } task clean(type: Delete) { delete rootProject.buildDir } ext.versions.project = new JsonSlurper().parse(file("./project-versions.json")) as LazyMap