build.gradle 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. plugins {
  2. id 'org.springframework.boot' version '2.6.3' apply(false)
  3. id 'io.spring.dependency-management' version '1.0.11.RELEASE' apply(false)
  4. id 'java'
  5. id 'war'
  6. }
  7. // 所有子项目通用配置
  8. subprojects {
  9. group = 'com.songmao'
  10. version = '1.0.0'
  11. apply plugin: 'java'
  12. apply plugin: 'war'
  13. // Task type of JavaCompile
  14. tasks.withType(JavaCompile, {
  15. //enable compilation in a separate daemon process
  16. sourceCompatibility = 8
  17. targetCompatibility = 8
  18. //options.release = 8
  19. // default to true
  20. options.incremental = true
  21. // default to true
  22. options.failOnError = false
  23. // default to false
  24. options.fork = true
  25. options.encoding = "UTF-8"
  26. // default to true
  27. options.debug = true
  28. })
  29. // tag::repositories[]
  30. repositories {
  31. // 本地仓库
  32. mavenLocal()
  33. // ali 代理的central仓
  34. maven {url 'https://maven.aliyun.com/repository/central'}
  35. // ali 代理的central仓和jcenter仓的聚合仓
  36. maven {url 'https://maven.aliyun.com/repository/public'}
  37. maven {url 'https://maven.aliyun.com/repository/google'}
  38. maven {url 'https://maven.aliyun.com/repository/gradle-plugin'}
  39. maven {url 'https://maven.aliyun.com/repository/spring'}
  40. maven {url 'https://maven.aliyun.com/repository/spring-plugin'}
  41. maven {url 'https://maven.aliyun.com/repository/grails-core'}
  42. // 远程中央仓库
  43. mavenCentral()
  44. maven {url 'https://repo1.maven.org/maven2/'}
  45. maven {url 'https://plugins.gradle.org/m2/'}
  46. maven {url 'https://repo.spring.io/libs-milestone/'}
  47. maven {url 'https://repo.spring.io/plugins-release/'}
  48. maven {url 'https://repo.grails.org/grails/core/'}
  49. maven {url 'https://repository.apache.org/content/groups/public/'}
  50. maven {url 'https://repository.jboss.org/nexus/content/repositories/releases/'}
  51. // 配置使用其它nexus 私服
  52. maven {
  53. // 非https需要增加对不安全协议的信任
  54. allowInsecureProtocol true
  55. url 'http://nexus.ds-bay.com/content/groups/public/'
  56. credentials {
  57. username 'admin'
  58. password 'admin123'
  59. }
  60. }
  61. //maven {url 'others url'}
  62. }
  63. // end::repositories[]
  64. ext {
  65. lombok = '1.18.22'
  66. javax_annotation_api = '1.3.2'
  67. javax_servlet = '4.0.1'
  68. spring_boot = '2.6.1'
  69. spring = '5.3.13'
  70. // logback对spring的支持
  71. logback_ext_spring = '0.1.4'
  72. jackson = '2.11.2'
  73. // 工具类
  74. google_guava = '29.0-jre'
  75. // Java工具包类库,各种Util工具类
  76. hutool = '5.6.2'
  77. // (推荐)Forest,Java HTTP 客户端框架
  78. forest = '1.5.0-RC5'
  79. // alibaba 出品 excel 工具类, 需要 lombok 支持
  80. easyexcel = '3.0.5'
  81. }
  82. }
  83. // others project() {}
  84. project (':analog-api', {
  85. apply plugin: 'org.springframework.boot'
  86. apply plugin: 'io.spring.dependency-management'
  87. })