apply from: "config.gradle" buildscript { ext { kotlin_version = '1.3.50' support_version = '26.1.0' minSdkVersion = 21 targetSdkVersion = 28 compileSdkVersion = 28 buildToolsVersion = '28.0.3' arouter_api = '1.4.1' arouter_compiler = '1.2.2' ydlrouter_version = '1.2.3' constrait_support_version = '1.0.2' } repositories { maven { url 'http://nexus.yidianling.com/repository/android/' credentials { username "admin" password "fjoi#1+#@" } } maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' } mavenCentral() google() mavenLocal() // maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } } dependencies { classpath 'com.android.tools.build:gradle:3.2.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath 'com.ydl.plugins:modular:1.0.3' classpath 'com.ydl:notracepoint-gradle-plugin:0.0.3' classpath 'com.ydl.plugins:restools:1.0.1' } } allprojects { repositories { //壹点灵android maven私服 开发版 maven { url 'http://nexus.yidianling.com/repository/android/' credentials { username "admin" password "fjoi#1+#@" } } maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' } mavenCentral() google() mavenLocal() } } task clean(type: Delete) { delete rootProject.buildDir } subprojects { project.configurations.all { //防止support版本冲突,统一设置第三方support版本 resolutionStrategy.eachDependency { details -> if (details.requested.group == 'com.android.support' && !details.requested.name.contains('multidex')) { details.useVersion "$support_version" } } } } apply plugin: 'modular-plugin' modular { compileSdkVersion 27 compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } repositories { maven { url 'http://nexus.yidianling.com/repository/AndroidReleases/' credentials { username "admin" password "fjoi#1+#@" } } } }