build.gradle 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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:3.2.1'
  10. classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
  11. // classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.2'
  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. maven {
  21. url 'http://www.idescout.com/maven/repo/'
  22. name 'IDEScout, Inc.'
  23. }
  24. //解决中文乱码问题
  25. tasks.withType(Javadoc) { //兼容中文
  26. options.addStringOption('Xdoclint:none', '-quiet')
  27. options.addStringOption('encoding', 'UTF-8')
  28. options {
  29. encoding "UTF-8"
  30. charSet 'UTF-8'
  31. links "http://docs.oracle.com/javase/7/docs/api"
  32. }
  33. }
  34. }
  35. }
  36. task clean(type: Delete) {
  37. delete rootProject.buildDir
  38. }