1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- // Top-level build file where you can add configuration options common to all sub-projects/modules.
- apply from: "config.gradle"
- buildscript {
- ext.kotlin_version = "1.6.10"
- repositories {
- maven { url 'http://127.0.0.1:1022/repository/maven-public/' }
- // maven {
- // allowInsecureProtocol true
- // url 'http://xuqinmin.com.cn:8081/repository/android-group/'
- // }
- }
- dependencies {
- classpath 'com.android.tools.build:gradle:7.2.0'
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.0"
- // NOTE: Do not place your application dependencies here; they belong
- // in the individual module build.gradle files
- }
- }
- allprojects {
- repositories {
- // google()
- // jcenter()
- // maven { url 'http://developer.huawei.com/repo/' }
- maven { url 'http://127.0.0.1:1022/repository/maven-public/' }
- // maven {
- // allowInsecureProtocol true
- // url 'http://xuqinmin.com.cn:8081/repository/android-group/'
- // }
- }
- }
- //全局配置,所有module都可以用到
- subprojects {
- afterEvaluate {
- android {
- buildFeatures.dataBinding = true
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_11
- targetCompatibility JavaVersion.VERSION_11
- }
- kotlinOptions {
- jvmTarget = "11"
- }
- }
- }
- }
- task clean(type: Delete) {
- delete rootProject.buildDir
- }
|