build.gradle 1010 B

1234567891011121314151617181920212223242526272829303132333435
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. apply from: "libversion.gradle"
  3. buildscript {
  4. ext.kotlin_version = '1.4.0-rc'
  5. ext.kotlin_version = "1.3.72"
  6. repositories {
  7. google()
  8. jcenter()
  9. }
  10. dependencies {
  11. classpath "com.android.tools.build:gradle:4.0.1"
  12. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  13. // NOTE: Do not place your application dependencies here; they belong
  14. // in the individual module build.gradle files
  15. classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'//动态获取权限
  16. }
  17. }
  18. allprojects {
  19. repositories {
  20. google()
  21. jcenter()
  22. maven { url "https://jitpack.io" }
  23. flatDir {
  24. dirs project(':base').file('libs')
  25. dirs project(':basekt').file('libs')
  26. dirs project(':app').file('libs')
  27. }
  28. }
  29. }
  30. task clean(type: Delete) {
  31. delete rootProject.buildDir
  32. }