build.gradle 1.1 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.0'
  9. classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
  10. classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.3'
  11. // classpath 'com.novoda:bintray-release:0.8.0'
  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. //解决中文乱码问题
  21. tasks.withType(Javadoc) { //兼容中文
  22. options.addStringOption('Xdoclint:none', '-quiet')
  23. options.addStringOption('encoding', 'UTF-8')
  24. options {
  25. encoding "UTF-8"
  26. charSet 'UTF-8'
  27. links "http://docs.oracle.com/javase/7/docs/api"
  28. }
  29. }
  30. }
  31. }
  32. task clean(type: Delete) {
  33. delete rootProject.buildDir
  34. }