build.gradle 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 {
  7. // allowInsecureProtocol = true
  8. url 'http://maven.keleyanyi.com/repository/benyanyi/'
  9. }
  10. }
  11. dependencies {
  12. classpath 'com.android.tools.build:gradle:4.1.3'
  13. classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
  14. // classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.2'
  15. // NOTE: Do not place your application dependencies here; they belong
  16. // in the individual module build.gradle files
  17. }
  18. }
  19. allprojects {
  20. repositories {
  21. google()
  22. jcenter()
  23. maven {
  24. url 'http://www.idescout.com/maven/repo/'
  25. name 'IDEScout, Inc.'
  26. }
  27. maven {
  28. // allowInsecureProtocol = true
  29. url 'http://maven.keleyanyi.com/repository/benyanyi/'
  30. }
  31. //解决中文乱码问题
  32. tasks.withType(Javadoc) { //兼容中文
  33. options.addStringOption('Xdoclint:none', '-quiet')
  34. options.addStringOption('encoding', 'UTF-8')
  35. options {
  36. encoding "UTF-8"
  37. charSet 'UTF-8'
  38. links "http://docs.oracle.com/javase/7/docs/api"
  39. }
  40. }
  41. }
  42. }
  43. task clean(type: Delete) {
  44. delete rootProject.buildDir
  45. }