build.gradle 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. repositories {
  4. maven {
  5. url "http://mvn.mob.com/android"
  6. }
  7. jcenter()
  8. mavenCentral()
  9. google()
  10. }
  11. dependencies {
  12. classpath "com.android.tools.build:gradle:4.0.1"
  13. classpath 'com.mob.sdk:MobSDK:+'
  14. classpath 'com.jakewharton:butterknife-gradle-plugin:10.2.3'
  15. // NOTE: Do not place your application dependencies here; they belong
  16. // in the individual module build.gradle files
  17. }
  18. }
  19. String mavenUrl = "http://mvn.mob.com/android"
  20. if (hasProperty("mavenUrl")) {
  21. mavenUrl = getProperty("mavenUrl")
  22. }
  23. println "mavenUrl: ${mavenUrl}, ${hasProperty("mavenUrl")}"
  24. allprojects {
  25. repositories {
  26. jcenter()
  27. maven { url "https://jitpack.io" }
  28. mavenLocal()
  29. maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
  30. maven { url 'https://dl.google.com/dl/android/maven2/' }
  31. // maven { url 'https://maven.google.com' }
  32. maven { url mavenUrl }
  33. jcenter()
  34. mavenCentral()
  35. }
  36. }
  37. task clean(type: Delete) {
  38. delete rootProject.buildDir
  39. }