build.gradle 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. ext {
  3. }
  4. buildscript {
  5. //版本号
  6. ext.kotlin_version = '1.3.72'
  7. ext.anko_version = '0.10.3'
  8. ext.gradle_version = '3.4.2'
  9. repositories {
  10. google()
  11. jcenter()
  12. }
  13. dependencies {
  14. classpath "com.android.tools.build:gradle:${gradle_version}"
  15. classpath "io.realm:realm-gradle-plugin:3.1.1"
  16. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  17. // NOTE: Do not place your application dependencies here; they belong
  18. // in the individual module build.gradle files
  19. }
  20. }
  21. allprojects {
  22. repositories {
  23. google()
  24. jcenter()
  25. mavenCentral()
  26. maven { url "https://jitpack.io" }
  27. maven {
  28. url "https://oss.sonatype.org/content/repositories/snapshots/"
  29. }
  30. // maven { url "http://mvn.zoneland.net/nexus/content/repositories/land_repo/" }
  31. maven { url "http://maven.o2oa.net/repository/maven-public/" }
  32. }
  33. }