build.gradle 3.0 KB

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