build.gradle 1.0 KB

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