build.gradle 1.93 KB
buildscript {
    // ext.kotlin_version = '1.3.50'
    ext.kotlin_version = '1.6.20'
    
    //  ext.kotlin_version = '1.5.20'
// ext.kotlin_version = '1.6.21'

// ext.kotlin_version = '1.5.20'

//  ext.kotlin_version = '1.4.32'
    repositories {
        google()
        jcenter()


maven{
  url 'http://maven.aliyun.com/nexus/content/groups/public/'
  allowInsecureProtocol = true
}


         maven { url 'https://maven.aliyun.com/repository/google' }
         maven { url 'https://maven.aliyun.com/repository/jcenter' }
        //  maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
      
        maven {url 'https://developer.huawei.com/repo/'}

        
    }

    dependencies {
        // classpath 'com.android.tools.build:gradle:4.2.0'
         classpath 'com.android.tools.build:gradle:7.4.1'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath 'com.huawei.agconnect:agcp:1.0.0.300'
    }
}

allprojects {
    repositories {
        google()
        jcenter()


maven{
  url 'http://maven.aliyun.com/nexus/content/groups/public/'
  allowInsecureProtocol = true
}


        maven { url 'https://maven.aliyun.com/repository/google' }
         maven { url 'https://maven.aliyun.com/repository/jcenter' }
        //  maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }

        maven {url 'https://developer.huawei.com/repo/'}
    }
}

rootProject.buildDir = '../build'
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
    project.evaluationDependsOn(':app')
}

subprojects {
    project.configurations.all {
        resolutionStrategy.eachDependency { details ->
            if (details.requested.group == 'com.android.support'
                    && !details.requested.name.contains('multidex') ) {
                details.useVersion "27.1.1"
            }
        }
    }
}

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