build.gradle 3.8 KB

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