buildscript {
    ext.kotlin_version = '1.3.72'
    repositories {
       
        mavenCentral()
        maven{url 'http://maven.aliyun.com/nexus/content/groups/public/'}
       // jcenter(){ url 'https://jcenter.bintray.com/'}
        google()
      //  jcenter() 
         }
    dependencies {
        classpath 'com.android.tools.build:gradle:**4.0.2**'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

      
    }
    //编译时跳过test测试
    gradle.taskGraph.whenReady {
        tasks.each { task ->
            if (task.name.contains("test"))
            {
                task.enabled = false
            }
        }
    }
}

allprojects {
    repositories {
        
        mavenCentral()
        maven{url 'http://maven.aliyun.com/nexus/content/groups/public/'}
       // jcenter(){ url 'http://jcenter.bintray.com/'}
        google()
      //  jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

        ```
Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐