makcar/build.gradle

75 lines
2.8 KiB
Groovy

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
maven { url 'https://maven.fabric.io/public' }
maven { url 'https://plugins.gradle.org/m2/' }
}
dependencies {
// 推荐的 Android Gradle Plugin 版本,不做强求,可以自定适配需要的版本。但是如果你需要引入 UXSDK 框架,则建议使用推荐版本,否则可能会出现编译兼容性问题。
classpath "com.android.tools.build:gradle:8.7.0"
// 推荐的 Kotlin 版本,如果你需要引入 UXSDK 框架,则建议使用推荐版本,否则可能会出现编译兼容性问题
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:2.1.0" //DJI MSDK 建议的版本
// ... (remaining code)
// classpath 'com.android.tools.build:gradle:7.1.3'
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.0'
// classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0'
classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.1.1'
classpath "org.jacoco:org.jacoco.core:0.8.7"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
//flatDir { dirs 'libs' }
jcenter(){ url 'https://jcenter.bintray.com/'}
maven { url 'https://jitpack.io' }
maven {
url "https://maven.aliyun.com/nexus/content/repositories/releases"
maven { url 'https://maven.aliyun.com/nexus/content/repositories/google' }
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter'}
}
maven {
url "https://s3.amazonaws.com/repo.commonsware.com"
}
maven {
allowInsecureProtocol = true
url "http://repo.sunhitech.com:1338/repository/sunhi-java/"
credentials {
username 'sunhi'
password 'sunhi#12'
}
}
maven {
url "https://repo1.maven.org/maven2"
}
// VLC仓库
maven { url "https://mirrors.bfsu.edu.cn/videolan-android/repository" }
mavenCentral()
maven {
url "https://dl.bintray.com/kotlin/kotlin-eap"
}
maven { url "https://jitpack.io" }
repositories {
flatDir {
dirs new File(rootProject.projectDir.getAbsolutePath() + '/libs')
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}