build.gradle 1.1 KB

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