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