build.gradle 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. repositories {
  4. google()
  5. mavenCentral()
  6. jcenter()
  7. }
  8. dependencies {
  9. classpath("com.android.tools.build:gradle:4.0.1")
  10. classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
  11. classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
  12. // NOTE: Do not place your application dependencies here; they belong
  13. // in the individual module build.gradle files
  14. classpath("com.otaliastudios.tools:publisher:0.3.3")
  15. classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.0")
  16. }
  17. }
  18. allprojects {
  19. repositories {
  20. google()
  21. mavenCentral()
  22. jcenter()
  23. maven { url 'https://jitpack.io' }
  24. }
  25. }
  26. task clean(type: Delete) {
  27. delete rootProject.buildDir
  28. }
  29. // 统一编译版本
  30. ext.versions = [
  31. // Project
  32. minSdk : 21,
  33. compileSdk : 29,
  34. targetSdk : 29,
  35. buildTools : '29.0.2',
  36. ]