build.gradle 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. ext.kotlin_version = '1.4.10'
  4. repositories {
  5. maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
  6. maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
  7. maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
  8. maven { url 'http://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
  9. google()
  10. jcenter()
  11. }
  12. dependencies {
  13. classpath 'com.android.tools.build:gradle:3.5.1'
  14. classpath 'org.greenrobot:greendao-gradle-plugin:3.3.0' // add plugin
  15. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  16. // NOTE: Do not place your application dependencies here; they belong
  17. // in the individual module build.gradle files
  18. }
  19. }
  20. allprojects {
  21. repositories {
  22. maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
  23. maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
  24. maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
  25. maven { url 'http://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
  26. mavenCentral()
  27. maven {url "https://jitpack.io"}
  28. google()
  29. jcenter()
  30. }
  31. }
  32. task clean(type: Delete) {
  33. delete rootProject.buildDir
  34. }
  35. ext {
  36. // Sdk and tools
  37. targetSdkVersion = 29
  38. compileSdkVersion = 29
  39. buildToolsVersion = '29.0.2'
  40. // Google Support
  41. supportLibraryVersion = '28.0.0'
  42. constraintLayoutVersion = '1.1.3'
  43. junitVersion = '4.12'
  44. }