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. repositories {
  4. google()
  5. maven {
  6. url 'http://maven.keleyanyi.com/repository/benyanyi/'
  7. }
  8. jcenter()
  9. maven { url 'http://maven.benyanyi.com/nexus/content/repositories/mylove/' }
  10. }
  11. dependencies {
  12. classpath 'com.android.tools.build:gradle:4.1.3'
  13. classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
  14. }
  15. }
  16. allprojects {
  17. repositories {
  18. google()
  19. maven {
  20. url 'http://maven.keleyanyi.com/repository/benyanyi/'
  21. }
  22. jcenter()
  23. maven { url 'http://maven.benyanyi.com/nexus/content/repositories/mylove/' }
  24. //解决中文乱码问题
  25. tasks.withType(Javadoc) { //兼容中文
  26. options.addStringOption('Xdoclint:none', '-quiet')
  27. options.addStringOption('encoding', 'UTF-8')
  28. options {
  29. encoding "UTF-8"
  30. charSet 'UTF-8'
  31. links "http://docs.oracle.com/javase/7/docs/api"
  32. }
  33. }
  34. }
  35. }
  36. task clean(type: Delete) {
  37. delete rootProject.buildDir
  38. }