build.gradle 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /*
  2. * ********************************************************************************************************************
  3. *
  4. * iFHS7.
  5. * ;BBMBMBMc rZMBMBR BMB
  6. * MBEr:;PBM, 7MBMMEOBB: BBB RBW
  7. * XK: BO SB. :SZ MBM. c;; ir BBM :FFr :SSF: ;xBMB:r iuGXv. i:. iF2;
  8. * DBBM0r. :D S7 ;XMBMB GMBMu. MBM: BMB MBMBBBMBMS WMBMBMBBK MBMBMBM BMBRBMBW .MBMBMBMBB
  9. * :JMRMMD .. , 1MMRM1; ;MBMBBR: MBM ;MB: BMB: MBM. RMBr sBMH BM0 UMB, BMB. KMBv
  10. * ;. XOW B1; :uM: 1RE, i .2BMBs rMB. MBO MBO JMB; MBB MBM BBS 7MBMBOBM: MBW :BMc
  11. * OBRJ.SEE MRDOWOR, 3DE:7OBM . ;BMB RMR7BM BMB MBB. BMB ,BMR .BBZ MMB rMB, BMM rMB7
  12. * :FBRO0D0 RKXSXPR. JOKOOMPi BMBSSWBMB; BMBB: MBMB0ZMBMS .BMBOXRBMB MBMDE RBM2;SMBM; MBB xBM2
  13. * iZGE O0SHSPO. uGZ7. sBMBMBDL :BMO OZu:BMBK, rRBMB0; ,EBMB xBMBr:ER. RDU :OO;
  14. * ,BZ, 1D0 RPSFHXR. xWZ .SMr . .BBB
  15. * :0BMRDG RESSSKR. 2WOMBW; BMBMR
  16. * i0BM: SWKHKGO MBDv
  17. * .UB OOGDM. MK, Copyright (c) 2015-2019. 斯伯坦机器人
  18. * , XMW ..
  19. * r All rights reserved.
  20. *
  21. * ********************************************************************************************************************
  22. */
  23. group SAGA_GROUP
  24. version SAGA_ANDROID_VERSION
  25. buildscript {
  26. repositories {
  27. /* maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' }
  28. maven { url 'https://maven.aliyun.com/repository/google' }
  29. maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }*/
  30. mavenCentral()
  31. jcenter()
  32. google()
  33. }
  34. dependencies {
  35. classpath "com.android.tools.build:gradle:7.0.2"
  36. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31"
  37. // classpath group: 'com.android.tools.build', name: 'gradle', version: GRADLE_VERSION
  38. // classpath group: 'org.jetbrains.kotlin', name: 'kotlin-gradle-plugin', version: KOTLIN_VERSION
  39. // classpath group: 'org.jetbrains.kotlin', name: 'kotlin-android-extensions', version: KOTLIN_VERSION
  40. classpath group: 'org.jetbrains.dokka', name: 'dokka-android-gradle-plugin', version: DOKKA_VERSION
  41. }
  42. }
  43. allprojects {
  44. repositories {
  45. mavenCentral()
  46. maven {
  47. allowInsecureProtocol = true
  48. url MAVEN_REPO_PUBLIC_URL }
  49. maven {
  50. allowInsecureProtocol = true
  51. url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
  52. maven { url 'https://maven.aliyun.com/repository/google' }
  53. maven {
  54. allowInsecureProtocol = true
  55. url 'http://maven.aliyun.com/nexus/content/groups/public/' }
  56. jcenter()
  57. google()
  58. maven {
  59. allowInsecureProtocol = true
  60. url 'http://nexus.arashivision.com:9999/repository/maven-public/'
  61. credentials {
  62. username = 'deployment'
  63. password = 'test123'
  64. }
  65. }
  66. maven{url"https://jitpack.io"}
  67. }
  68. tasks.withType(Javadoc) {
  69. options {
  70. encoding 'UTF-8'
  71. charSet 'UTF-8'
  72. links 'http://docs.oracle.com/javase/8/docs/api'
  73. }
  74. }
  75. }
  76. tasks.withType(JavaCompile) {
  77. // 全局编码设置
  78. options.encoding = 'UTF-8'
  79. }
  80. // 生成文档
  81. task dokkaAll(type: org.jetbrains.dokka.gradle.DokkaTask) {
  82. jdkVersion = JDK_VERSION.toInteger()
  83. noStdlibLink = true
  84. outputFormat = 'javadoc'
  85. outputDirectory = $/$buildDir/javadoc/$
  86. sourceDirs = files(
  87. "$projectDir/sybotan-android-core/src/main/java",
  88. "$projectDir/sybotan-android-devices/src/main/java",
  89. "$projectDir/sybotan-android-graphy/src/main/java",
  90. "$projectDir/sybotan-android-views/src/main/java")
  91. }
  92. //task clean(type: Delete) {
  93. // delete rootProject.buildDir
  94. //}