pom.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <artifactId>byjc</artifactId>
  7. <groupId>com.byjc.cloud</groupId>
  8. <version>${revision}</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>byjc-gateway</artifactId>
  12. <packaging>jar</packaging>
  13. <name>${project.artifactId}</name>
  14. <description>API 服务网关,基于 Spring Cloud Gateway 实现</description>
  15. <url>https://github.com/YunaiV/byjc-cloud</url>
  16. <dependencies>
  17. <!-- 业务组件 -->
  18. <dependency>
  19. <groupId>com.byjc.cloud</groupId>
  20. <artifactId>byjc-module-system-api</artifactId>
  21. <version>${revision}</version>
  22. <exclusions>
  23. <exclusion>
  24. <groupId>org.springdoc</groupId>
  25. <artifactId>springdoc-openapi-webmvc-core</artifactId>
  26. </exclusion>
  27. </exclusions>
  28. </dependency>
  29. <!-- Gateway 网关相关 -->
  30. <dependency>
  31. <groupId>org.springframework.cloud</groupId>
  32. <artifactId>spring-cloud-starter-gateway-server-webflux</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>com.github.xiaoymin</groupId> <!-- 接口文档 -->
  36. <artifactId>knife4j-gateway-spring-boot-starter</artifactId>
  37. </dependency>
  38. <!-- RPC 远程调用相关 -->
  39. <dependency>
  40. <groupId>org.springframework.cloud</groupId>
  41. <artifactId>spring-cloud-starter-loadbalancer</artifactId>
  42. </dependency>
  43. <!-- Registry 注册中心相关 -->
  44. <dependency>
  45. <groupId>com.alibaba.cloud</groupId>
  46. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  47. </dependency>
  48. <!-- Config 配置中心相关 -->
  49. <dependency>
  50. <groupId>com.alibaba.cloud</groupId>
  51. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  52. </dependency>
  53. <!-- 监控相关 -->
  54. <dependency>
  55. <groupId>com.byjc.cloud</groupId>
  56. <artifactId>byjc-spring-boot-starter-monitor</artifactId>
  57. </dependency>
  58. <!-- 工具类相关 -->
  59. <dependency>
  60. <groupId>com.google.guava</groupId>
  61. <artifactId>guava</artifactId>
  62. </dependency>
  63. <dependency>
  64. <!-- 必须引入,否则会有 https://gitee.com/byjccode/byjc-cloud-mini/issues/IB5PXW 告警 -->
  65. <groupId>com.github.ben-manes.caffeine</groupId>
  66. <artifactId>caffeine</artifactId>
  67. </dependency>
  68. </dependencies>
  69. <build>
  70. <!-- 设置构建的 jar 包名 -->
  71. <finalName>${project.artifactId}</finalName>
  72. <plugins>
  73. <!-- 打包 -->
  74. <plugin>
  75. <groupId>org.springframework.boot</groupId>
  76. <artifactId>spring-boot-maven-plugin</artifactId>
  77. <version>${spring.boot.version}</version>
  78. <executions>
  79. <execution>
  80. <goals>
  81. <goal>repackage</goal> <!-- 将引入的 jar 打入其中 -->
  82. </goals>
  83. </execution>
  84. </executions>
  85. </plugin>
  86. </plugins>
  87. </build>
  88. </project>