build.gradle 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 'http://maven.yanyi.online:8081/nexus/content/repositories/mylove/'}
  7. }
  8. dependencies {
  9. classpath "com.android.tools.build:gradle:4.0.0"
  10. classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
  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. maven{ url 'http://maven.yanyi.online:8081/nexus/content/repositories/mylove/'}
  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. }