build.gradle 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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:7.0.0'
  11. // classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
  12. // classpath 'me.tatarka:gradle-retrolambda:3.2.1'
  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 {
  23. url "https://www.benyanyi.com/repository/benyanyi/"
  24. }
  25. //解决中文乱码问题
  26. tasks.withType(Javadoc) { //兼容中文
  27. options.addStringOption('Xdoclint:none', '-quiet')
  28. options.addStringOption('encoding', 'UTF-8')
  29. options {
  30. encoding "UTF-8"
  31. charSet 'UTF-8'
  32. links "http://docs.oracle.com/javase/7/docs/api"
  33. }
  34. }
  35. }
  36. }
  37. task clean(type: Delete) {
  38. delete rootProject.buildDir
  39. }