build.gradle 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. plugins {
  2. id 'java-library'
  3. }
  4. group 'com.incubator.common'
  5. version '1.0-SNAPSHOT'
  6. dependencies {
  7. testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
  8. testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
  9. // 日志相关
  10. api 'org.slf4j:slf4j-api:2.0.16' // SLF4J API
  11. api 'org.apache.logging.log4j:log4j-slf4j2-impl:2.24.2' // SLF4J -> Log4j2 桥接
  12. api 'org.apache.logging.log4j:log4j-core:2.24.2' // Log4j2 实现
  13. // 系统核心依赖
  14. api 'com.lmax:disruptor:3.4.4' // 高性能队列
  15. api 'org.quartz-scheduler:quartz:2.4.0' // 定时任务调度
  16. api 'com.zaxxer:HikariCP:6.2.0' // 高性能数据库连接池
  17. api 'com.mysql:mysql-connector-j:9.1.0' // MySQL 数据库驱动
  18. api 'org.mybatis:mybatis:3.5.16' // MyBatis 持久层框架
  19. api 'redis.clients:jedis:5.2.0' // Redis 客户端
  20. api 'org.mongodb:mongo-java-driver:3.12.14' // MongoDB 驱动
  21. api 'org.dom4j:dom4j:2.1.4' // XML 操作工具
  22. // 网络通信和序列化
  23. api 'io.netty:netty-all:4.1.117.Final' // Netty 全功能包
  24. api 'org.msgpack:msgpack-core:0.9.8' // MessagePack 序列化
  25. api 'com.dyuproject.protostuff:protostuff-core:1.3.1' // Protostuff 核心
  26. api 'com.dyuproject.protostuff:protostuff-runtime:1.3.1' // Protostuff 运行时
  27. // 工具和辅助库
  28. api 'org.apache.commons:commons-lang3:3.17.0' // Apache Commons Lang
  29. api 'org.bouncycastle:bcprov-jdk18on:1.79' // 加密库
  30. api 'it.unimi.dsi:dsiutils:2.7.3' // 数据结构和算法工具
  31. api 'org.reflections:reflections:0.10.2' // 反射工具
  32. api 'cn.hutool:hutool-all:5.8.25' // Hutool 工具包
  33. // api 'org.springframework.boot:spring-boot-starter-amqp:2.6.3' //mq
  34. api 'com.rabbitmq:amqp-client:5.14.2' //mq
  35. api 'org.springframework:spring-web:5.3.33' //web
  36. // Excel 操作
  37. api 'com.alibaba:easyexcel:4.0.3' // EasyExcel
  38. api 'org.apache.poi:poi:5.3.0' // Apache POI
  39. api 'org.apache.poi:poi-ooxml:5.3.0' // Apache POI OOXML
  40. }
  41. tasks {
  42. // 清理冗余的 copyAllDependencies 任务,如有必要重新定义
  43. build.dependsOn("jar")
  44. }