build.gradle 1.5 KB

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