build.gradle 3.1 KB

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