build.gradle 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. // 引入自定义Gradle配置文件
  3. apply from: "config.gradle"
  4. buildscript {
  5. repositories {
  6. google()
  7. // jcenter()
  8. mavenCentral()
  9. mavenLocal()
  10. maven { url 'https://jitpack.io' }
  11. maven { url 'https://dl.bintray.com/jenly/maven' }
  12. maven { url 'https://maven.aliyun.com/nexus/content/groups/public/'}
  13. maven { url "https://mirrors.tencent.com/nexus/repository/maven-public/" }
  14. }
  15. dependencies {
  16. classpath "com.android.tools.build:gradle:4.1.1"
  17. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72"
  18. // classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.32"
  19. // NOTE: Do not place your application dependencies here; they belong
  20. // in the individual module build.gradle files
  21. }
  22. }
  23. allprojects {
  24. repositories {
  25. google()
  26. // jcenter()
  27. mavenCentral()
  28. mavenLocal()
  29. maven { url 'https://jitpack.io' }
  30. maven { url 'https://dl.bintray.com/jenly/maven' }
  31. maven { url 'https://maven.aliyun.com/nexus/content/groups/public/'}
  32. maven { url "https://mirrors.tencent.com/nexus/repository/maven-public/" }
  33. // flatDir {
  34. // dirs project(':lib_print').file('libs') // 我的aar文件已放置到 lib_ffmpeg 模块的libs目录下
  35. // }
  36. }
  37. }
  38. task clean(type: Delete) {
  39. delete rootProject.buildDir
  40. }