pom.xml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://maven.apache.org/POM/4.0.0"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>cn.itlym.platform</groupId>
  8. <artifactId>shoulder-platform-parent</artifactId>
  9. <version>1.0-SNAPSHOT</version><!-- shoulder-platform-version -->
  10. <relativePath>../../shoulder-platform-common/shoulder-platform-parent/pom.xml</relativePath>
  11. </parent>
  12. <artifactId>shoulder-api-gateway</artifactId>
  13. <description>Shoulder 网关,支持跨域认证,追踪,限流,接口发布与撤销</description>
  14. <name>${project.artifactId}</name>
  15. <properties>
  16. <shoulder.version>0.8.1</shoulder.version><!-- shoulder-version -->
  17. <spring-boot.version>3.0.2</spring-boot.version>
  18. <spring-cloud.version>2023.0.1</spring-cloud.version>
  19. </properties>
  20. <dependencies>
  21. <dependency>
  22. <groupId>cn.itlym</groupId>
  23. <artifactId>shoulder-core</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.springframework.cloud</groupId>
  27. <artifactId>spring-cloud-starter-gateway</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.springframework.boot</groupId>
  31. <artifactId>spring-boot-starter-actuator</artifactId>
  32. </dependency>
  33. <!-- 服务注册与发现 -->
  34. <dependency>
  35. <groupId>cn.itlym.platform</groupId>
  36. <artifactId>shoulder-platform-starter-discovery-client</artifactId>
  37. </dependency>
  38. <!-- 配置动态刷新 -->
  39. <dependency>
  40. <groupId>cn.itlym.platform</groupId>
  41. <artifactId>shoulder-platform-starter-config-client</artifactId>
  42. <version>${shoulder-platform.version}</version>
  43. </dependency>
  44. </dependencies>
  45. <build>
  46. <!-- maven 默认使用 artifactId+version拼接 -->
  47. <finalName>${project.artifactId}</finalName>
  48. <!-- 动态打包环境配置源文件 -->
  49. <filters>
  50. <filter>../../dynamicConfig/config-${profile.active}.properties</filter>
  51. </filters>
  52. <resources>
  53. <resource>
  54. <directory>src/main/resources</directory>
  55. <includes>
  56. <include>**/*</include>
  57. </includes>
  58. <filtering>true</filtering>
  59. </resource>
  60. </resources>
  61. </build>
  62. </project>