build.gradle 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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.40'
  5. }
  6. repositories {
  7. google()
  8. jcenter()
  9. maven{ url 'http://maven.benyanyi.com/nexus/content/repositories/mylove/'}
  10. }
  11. dependencies {
  12. classpath 'com.android.tools.build:gradle:3.2.0'
  13. classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
  14. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  15. // NOTE: Do not place your application dependencies here; they belong
  16. // in the individual module build.gradle files
  17. }
  18. }
  19. allprojects {
  20. repositories {
  21. google()
  22. jcenter()
  23. //解决中文乱码问题
  24. tasks.withType(Javadoc) { //兼容中文
  25. options.addStringOption('Xdoclint:none', '-quiet')
  26. options.addStringOption('encoding', 'UTF-8')
  27. options {
  28. encoding "UTF-8"
  29. charSet 'UTF-8'
  30. links "http://docs.oracle.com/javase/7/docs/api"
  31. }
  32. }
  33. }
  34. }
  35. task clean(type: Delete) {
  36. delete rootProject.buildDir
  37. }