build.gradle 992 B

123456789101112131415161718192021222324252627282930313233343536
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. repositories {
  4. google()
  5. jcenter()
  6. maven { url 'https://www.benyanyi.com/repository/benyanyi/' }
  7. }
  8. dependencies {
  9. classpath 'com.android.tools.build:gradle:4.1.3'
  10. classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
  11. }
  12. }
  13. allprojects {
  14. repositories {
  15. google()
  16. jcenter()
  17. maven { url 'https://www.benyanyi.com/repository/benyanyi/' }
  18. //解决中文乱码问题
  19. tasks.withType(Javadoc) { //兼容中文
  20. options.addStringOption('Xdoclint:none', '-quiet')
  21. options.addStringOption('encoding', 'UTF-8')
  22. options {
  23. encoding "UTF-8"
  24. charSet 'UTF-8'
  25. links "http://docs.oracle.com/javase/7/docs/api"
  26. }
  27. }
  28. }
  29. }
  30. task clean(type: Delete) {
  31. delete rootProject.buildDir
  32. }