build.gradle 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. ext {
  2. configuration = [
  3. javaVersion = JavaVersion.VERSION_17
  4. ]
  5. // 仓库配置
  6. repositories {
  7. mavenLocal()
  8. maven { url 'https://maven.aliyun.com/repository/central' }
  9. maven { url 'https://maven.aliyun.com/repository/spring' }
  10. maven { url 'https://maven.aliyun.com/repository/google' }
  11. maven { url 'https://repo.spring.io/release' }
  12. maven { url 'https://repo.spring.io/milestone' }
  13. }
  14. }
  15. // 编译脚本
  16. buildscript {
  17. ext {
  18. springBootVersion = "3.1.1"
  19. aizudaVersion = "1.0.2"
  20. }
  21. // 仓库配置
  22. repositories {
  23. mavenLocal()
  24. maven { url 'https://maven.aliyun.com/repository/central' }
  25. maven { url 'https://maven.aliyun.com/repository/spring' }
  26. maven { url 'https://maven.aliyun.com/repository/google' }
  27. maven { url 'https://repo.spring.io/release' }
  28. maven { url 'https://repo.spring.io/milestone' }
  29. mavenCentral()
  30. }
  31. dependencies {
  32. classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
  33. }
  34. }
  35. apply plugin: 'java-library'
  36. apply plugin: "io.spring.dependency-management"
  37. apply plugin: 'org.springframework.boot'
  38. group = "com.aizuda"
  39. version = "1.0"
  40. description "爱组搭低代码组件化开发平台 Spring Boot 版本"
  41. sourceCompatibility = "${javaVersion}"
  42. targetCompatibility = "${javaVersion}"
  43. tasks.withType(JavaCompile) {
  44. options.encoding = "UTF-8"
  45. }
  46. configurations {
  47. all*.exclude module: "spring-boot-starter-logging"
  48. }
  49. // 依赖管理
  50. dependencyManagement {
  51. imports {
  52. mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
  53. mavenBom "com.aizuda:aizuda-bom:${aizudaVersion}"
  54. }
  55. }
  56. dependencies {
  57. implementation("com.aizuda:aizuda-service-parent:1.0.0")
  58. implementation("com.github.ben-manes.caffeine:caffeine")
  59. implementation("org.springframework.boot:spring-boot-starter-websocket")
  60. // 日志
  61. api('org.springframework.boot:spring-boot-starter-log4j2')
  62. api("com.lmax:disruptor")
  63. // 文档 https://springdoc.org/v2/#demos
  64. implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0")
  65. // 监控
  66. implementation("com.aizuda:aizuda-monitor")
  67. // 工作流引擎
  68. implementation("com.flowlong:flowlong-spring-boot-starter:0.0.1")
  69. // SpringBootAdmin 监控管理客户端,未使用可以删除
  70. // implementation("de.codecentric:spring-boot-admin-starter-client:3.0.2")
  71. // 电子邮件
  72. implementation("org.springframework.boot:spring-boot-starter-mail")
  73. // oss 文件存储
  74. implementation("com.aizuda:aizuda-oss")
  75. implementation("io.minio:minio:8.5.2")
  76. implementation("com.squareup.okhttp3:okhttp:4.10.0")
  77. implementation("org.apache.tika:tika-core:2.7.0")
  78. compileOnly("p6spy:p6spy:3.9.1")
  79. compileOnly("org.projectlombok:lombok")
  80. annotationProcessor("org.projectlombok:lombok")
  81. testAnnotationProcessor("org.projectlombok:lombok")
  82. testCompileOnly("org.projectlombok:lombok")
  83. }