build.gradle 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. ext {
  2. configuration = [
  3. javaVersion = JavaVersion.VERSION_17
  4. ]
  5. // 仓库配置
  6. repositories {
  7. mavenLocal()
  8. maven {
  9. allowInsecureProtocol = true
  10. url 'http://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.3.0"
  31. aizudaVersion = "1.0.3"
  32. }
  33. // 仓库配置
  34. repositories {
  35. mavenLocal()
  36. maven { url 'https://maven.aliyun.com/repository/central' }
  37. maven { url 'https://maven.aliyun.com/repository/spring' }
  38. maven { url 'https://maven.aliyun.com/repository/google' }
  39. maven { url 'https://repo.spring.io/release' }
  40. maven { url 'https://repo.spring.io/milestone' }
  41. mavenCentral()
  42. }
  43. dependencies {
  44. classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
  45. }
  46. }
  47. apply plugin: 'java-library'
  48. apply plugin: "io.spring.dependency-management"
  49. apply plugin: 'org.springframework.boot'
  50. group = "com.aizuda"
  51. version = "1.0"
  52. description "爱组搭低代码组件化开发平台 Spring Boot 版本"
  53. sourceCompatibility = "${javaVersion}"
  54. targetCompatibility = "${javaVersion}"
  55. tasks.withType(JavaCompile) {
  56. options.encoding = "UTF-8"
  57. }
  58. configurations {
  59. all*.exclude module: "spring-boot-starter-logging"
  60. all*.exclude module: "spring-boot-starter-tomcat"
  61. }
  62. // 依赖管理
  63. dependencyManagement {
  64. imports {
  65. mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
  66. mavenBom "com.aizuda:aizuda-bom:${aizudaVersion}"
  67. }
  68. }
  69. dependencies {
  70. implementation("com.aizuda:aizuda-service-parent:1.0.1") {
  71. // 纯 mysql 运行环境打开该配置排除 PG 依赖
  72. // exclude group:"org.postgresql", module:"postgresql"
  73. }
  74. // mysql 驱动,纯 PG 环境可删除该依赖
  75. implementation("mysql:mysql-connector-java:8.0.33")
  76. implementation("com.github.ben-manes.caffeine:caffeine")
  77. implementation("org.springframework.boot:spring-boot-starter-websocket")
  78. // 日志
  79. api('org.springframework.boot:spring-boot-starter-log4j2')
  80. api("com.lmax:disruptor")
  81. // 文档 https://springdoc.org/v2/#demos
  82. implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0")
  83. // 监控
  84. implementation("com.aizuda:aizuda-monitor")
  85. // 工作流引擎
  86. implementation("com.aizuda:flowlong-spring-boot-starter:0.0.7")
  87. // SpringBootAdmin 监控管理客户端,未使用可以删除
  88. // implementation("de.codecentric:spring-boot-admin-starter-client:3.0.2")
  89. // 电子邮件
  90. implementation("org.springframework.boot:spring-boot-starter-mail")
  91. // oss 文件存储
  92. implementation("com.aizuda:aizuda-oss")
  93. implementation("io.minio:minio:8.5.2")
  94. implementation("com.squareup.okhttp3:okhttp:4.10.0")
  95. implementation("org.apache.tika:tika-core:2.7.0")
  96. compileOnly("p6spy:p6spy:3.9.1")
  97. compileOnly("org.projectlombok:lombok")
  98. annotationProcessor("org.projectlombok:lombok")
  99. testAnnotationProcessor("org.projectlombok:lombok")
  100. testCompileOnly("org.projectlombok:lombok")
  101. }