12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- // 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/'
- }
- maven { url 'https://jitpack.io' }
- }
- }
- //全局配置,所有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
- }
|