build.gradle 1000 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. ext {
  4. kotlin_version = "1.3.72"
  5. appcompat = "1.2.0"
  6. dokka_version = '1.4.10.2'
  7. }
  8. repositories {
  9. google()
  10. mavenCentral()
  11. }
  12. dependencies {
  13. classpath "com.android.tools.build:gradle:4.1.3"
  14. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  15. classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version" //新添加的这一classpath
  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. mavenCentral()
  23. maven {
  24. url 'https://s01.oss.sonatype.org/content/repositories/releases/'
  25. // url 'https://s01.oss.sonatype.org/content/groups/staging/'
  26. }
  27. }
  28. }
  29. task clean(type: Delete) {
  30. delete rootProject.buildDir
  31. }