build.gradle 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. ext {
  2. configuration = [
  3. javaVersion = JavaVersion.VERSION_17
  4. ]
  5. // 仓库配置
  6. repositories {
  7. mavenLocal()
  8. maven {
  9. allowInsecureProtocol = true
  10. url 'https://git.aizuda.com/api/packages/aizuda/maven'
  11. credentials(HttpHeaderCredentials) {
  12. name = "Authorization"
  13. value = "token 7d725429ef7ac5c9fa9a6779f70032d6e42d7f34"
  14. }
  15. authentication {
  16. header(HttpHeaderAuthentication)
  17. }
  18. }
  19. maven { url 'https://maven.aliyun.com/repository/central' }
  20. maven { url 'https://maven.aliyun.com/repository/spring' }
  21. maven { url 'https://maven.aliyun.com/repository/google' }
  22. maven { url 'https://repo.spring.io/release' }
  23. maven { url 'https://repo.spring.io/milestone' }
  24. mavenCentral()
  25. }
  26. }
  27. // 编译脚本
  28. buildscript {
  29. ext {
  30. springBootVersion = "3.1.1"
  31. springdocVersion = "2.5.0"
  32. mybatisPlusVersion = "3.5.8"
  33. flowlongVersion = "1.0.3"
  34. aizudaVersion = "1.0.2"
  35. }
  36. // 仓库配置
  37. repositories {
  38. mavenLocal()
  39. maven { url 'https://maven.aliyun.com/repository/central' }
  40. maven { url 'https://maven.aliyun.com/repository/spring' }
  41. maven { url 'https://maven.aliyun.com/repository/google' }
  42. maven { url 'https://repo.spring.io/release' }
  43. maven { url 'https://repo.spring.io/milestone' }
  44. mavenCentral()
  45. }
  46. dependencies {
  47. classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
  48. }
  49. }
  50. apply plugin: 'java-library'
  51. apply plugin: "io.spring.dependency-management"
  52. apply plugin: 'org.springframework.boot'
  53. group = "com.aizuda"
  54. version = "1.0"
  55. description "爱组搭低代码组件化开发平台 Spring Boot 版本"
  56. sourceCompatibility = "${javaVersion}"
  57. targetCompatibility = "${javaVersion}"
  58. tasks.withType(JavaCompile) {
  59. options.encoding = "UTF-8"
  60. }
  61. configurations {
  62. all*.exclude module: "spring-boot-starter-logging"
  63. all*.exclude module: "spring-boot-starter-tomcat"
  64. }
  65. // 依赖管理
  66. dependencyManagement {
  67. imports {
  68. mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
  69. mavenBom "com.baomidou:mybatis-plus-bom:${mybatisPlusVersion}"
  70. mavenBom "com.aizuda:aizuda-bom:1.0.3"
  71. }
  72. }
  73. dependencies {
  74. implementation("com.aizuda:aizuda-service-parent:${aizudaVersion}") {
  75. // 纯 mysql 运行环境打开该配置排除 PG 依赖
  76. // exclude group:"org.postgresql", module:"postgresql"
  77. }
  78. // mysql 驱动,纯 PG 环境可删除该依赖
  79. implementation("mysql:mysql-connector-java:8.0.33")
  80. // SSO 单点登录
  81. implementation("com.baomidou:kisso:3.9.3")
  82. // 本地缓存
  83. implementation("com.github.ben-manes.caffeine:caffeine")
  84. // 代码生成
  85. implementation("com.aizuda:aizuda-generator:${aizudaVersion}")
  86. // 日志
  87. api("org.springframework.boot:spring-boot-starter-log4j2")
  88. api("com.lmax:disruptor")
  89. // 文档 https://springdoc.org
  90. implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:${springdocVersion}")
  91. // 监控
  92. implementation("com.aizuda:aizuda-monitor")
  93. // 工作流引擎
  94. implementation("com.aizuda:flowlong-spring-boot-starter:${flowlongVersion}")
  95. // SpringBootAdmin 监控管理客户端,未使用可以删除
  96. // implementation("de.codecentric:spring-boot-admin-starter-client:3.0.2")
  97. // 电子邮件
  98. implementation("org.springframework.boot:spring-boot-starter-mail")
  99. // oss 文件存储
  100. implementation("com.aizuda:aizuda-oss")
  101. // implementation("io.minio:minio:8.5.10")
  102. implementation("com.squareup.okhttp3:okhttp:4.10.0")
  103. implementation("org.apache.tika:tika-core:2.7.0")
  104. compileOnly("p6spy:p6spy:3.9.1")
  105. compileOnly("org.projectlombok:lombok")
  106. annotationProcessor("org.projectlombok:lombok")
  107. testAnnotationProcessor("org.projectlombok:lombok")
  108. testCompileOnly("org.projectlombok:lombok")
  109. }