pom.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright 2021 Apollo Authors
  4. ~
  5. ~ Licensed under the Apache License, Version 2.0 (the "License");
  6. ~ you may not use this file except in compliance with the License.
  7. ~ You may obtain a copy of the License at
  8. ~
  9. ~ http://www.apache.org/licenses/LICENSE-2.0
  10. ~
  11. ~ Unless required by applicable law or agreed to in writing, software
  12. ~ distributed under the License is distributed on an "AS IS" BASIS,
  13. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ~ See the License for the specific language governing permissions and
  15. ~ limitations under the License.
  16. ~
  17. -->
  18. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  19. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  20. <parent>
  21. <groupId>com.ctrip.framework.apollo</groupId>
  22. <artifactId>apollo</artifactId>
  23. <version>${revision}</version>
  24. <relativePath>../pom.xml</relativePath>
  25. </parent>
  26. <modelVersion>4.0.0</modelVersion>
  27. <artifactId>apollo-client</artifactId>
  28. <name>Apollo Client</name>
  29. <properties>
  30. <java.version>1.7</java.version>
  31. <github.path>${project.artifactId}</github.path>
  32. </properties>
  33. <dependencyManagement>
  34. <dependencies>
  35. <!-- Spring Boot 2 requires Java 8, so we need to manually stick to 1.5.x version in order to compile apollo-client against Java 7 -->
  36. <!-- This is only for apollo-client compilation use, because optional Spring dependencies are not transitive -->
  37. <dependency>
  38. <groupId>org.springframework.boot</groupId>
  39. <artifactId>spring-boot-dependencies</artifactId>
  40. <version>1.5.16.RELEASE</version>
  41. <type>pom</type>
  42. <scope>import</scope>
  43. </dependency>
  44. </dependencies>
  45. </dependencyManagement>
  46. <dependencies>
  47. <!-- apollo -->
  48. <dependency>
  49. <groupId>com.ctrip.framework.apollo</groupId>
  50. <artifactId>apollo-core</artifactId>
  51. </dependency>
  52. <!-- end of apollo -->
  53. <!-- guice -->
  54. <dependency>
  55. <groupId>com.google.inject</groupId>
  56. <artifactId>guice</artifactId>
  57. </dependency>
  58. <!-- end of guice -->
  59. <!-- log -->
  60. <dependency>
  61. <groupId>org.slf4j</groupId>
  62. <artifactId>slf4j-api</artifactId>
  63. </dependency>
  64. <!-- yml processing -->
  65. <dependency>
  66. <groupId>org.yaml</groupId>
  67. <artifactId>snakeyaml</artifactId>
  68. </dependency>
  69. <!-- end of yml processing -->
  70. <!-- optional spring dependency -->
  71. <dependency>
  72. <groupId>org.springframework</groupId>
  73. <artifactId>spring-context</artifactId>
  74. <optional>true</optional>
  75. </dependency>
  76. <!-- optional spring boot dependency -->
  77. <dependency>
  78. <groupId>org.springframework.boot</groupId>
  79. <artifactId>spring-boot-autoconfigure</artifactId>
  80. <optional>true</optional>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.springframework.boot</groupId>
  84. <artifactId>spring-boot-configuration-processor</artifactId>
  85. <optional>true</optional>
  86. </dependency>
  87. <!-- test -->
  88. <dependency>
  89. <groupId>org.eclipse.jetty</groupId>
  90. <artifactId>jetty-server</artifactId>
  91. <scope>test</scope>
  92. </dependency>
  93. <!-- take over jcl -->
  94. <dependency>
  95. <groupId>org.slf4j</groupId>
  96. <artifactId>jcl-over-slf4j</artifactId>
  97. <scope>test</scope>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.apache.logging.log4j</groupId>
  101. <artifactId>log4j-slf4j-impl</artifactId>
  102. <scope>test</scope>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.apache.logging.log4j</groupId>
  106. <artifactId>log4j-core</artifactId>
  107. <scope>test</scope>
  108. </dependency>
  109. <!-- end of test -->
  110. </dependencies>
  111. </project>