pom.xml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.seaweedfs</groupId>
  6. <artifactId>seaweedfs-client</artifactId>
  7. <version>3.80</version>
  8. <name>SeaweedFS Java Client</name>
  9. <description>A java client for SeaweedFS.</description>
  10. <url>https://github.com/seaweedfs/seaweedfs</url>
  11. <licenses>
  12. <license>
  13. <name>The Apache License, Version 2.0</name>
  14. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  15. </license>
  16. </licenses>
  17. <developers>
  18. <developer>
  19. <name>Chris Lu</name>
  20. <email>chris.lu@gmail.com</email>
  21. <organization>SeaweedFS</organization>
  22. <organizationUrl>https://seaweedfs.com</organizationUrl>
  23. </developer>
  24. </developers>
  25. <scm>
  26. <connection>scm:git:git://github.com/seaweedfs/seaweedfs.git</connection>
  27. <developerConnection>scm:git:ssh://github.com:seaweedfs/seaweedfs.git</developerConnection>
  28. <url>https://github.com/seaweedfs/seaweedfs/tree/master</url>
  29. </scm>
  30. <properties>
  31. <protobuf.version>3.25.5</protobuf.version>
  32. <!-- follow https://github.com/grpc/grpc-java -->
  33. <grpc.version>1.68.1</grpc.version>
  34. <guava.version>32.0.0-jre</guava.version>
  35. </properties>
  36. <dependencies>
  37. <dependency>
  38. <groupId>com.moandjiezana.toml</groupId>
  39. <artifactId>toml4j</artifactId>
  40. <version>0.7.2</version>
  41. </dependency>
  42. <!-- https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java -->
  43. <dependency>
  44. <groupId>com.google.protobuf</groupId>
  45. <artifactId>protobuf-java</artifactId>
  46. <version>${protobuf.version}</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>com.google.guava</groupId>
  50. <artifactId>guava</artifactId>
  51. <version>${guava.version}</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>io.grpc</groupId>
  55. <artifactId>grpc-netty-shaded</artifactId>
  56. <version>${grpc.version}</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>io.grpc</groupId>
  60. <artifactId>grpc-protobuf</artifactId>
  61. <version>${grpc.version}</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>io.grpc</groupId>
  65. <artifactId>grpc-stub</artifactId>
  66. <version>${grpc.version}</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.slf4j</groupId>
  70. <artifactId>slf4j-api</artifactId>
  71. <version>1.7.25</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.apache.httpcomponents</groupId>
  75. <artifactId>httpmime</artifactId>
  76. <version>4.5.13</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>junit</groupId>
  80. <artifactId>junit</artifactId>
  81. <version>4.13.1</version>
  82. <scope>test</scope>
  83. </dependency>
  84. <dependency>
  85. <groupId>javax.annotation</groupId>
  86. <artifactId>javax.annotation-api</artifactId>
  87. <version>1.3.2</version>
  88. </dependency>
  89. </dependencies>
  90. <build>
  91. <extensions>
  92. <extension>
  93. <groupId>kr.motd.maven</groupId>
  94. <artifactId>os-maven-plugin</artifactId>
  95. <version>1.6.2</version>
  96. </extension>
  97. </extensions>
  98. <plugins>
  99. <plugin>
  100. <groupId>org.apache.maven.plugins</groupId>
  101. <artifactId>maven-compiler-plugin</artifactId>
  102. <configuration>
  103. <source>8</source>
  104. <target>8</target>
  105. <release>8</release>
  106. </configuration>
  107. </plugin>
  108. <plugin>
  109. <groupId>org.xolstice.maven.plugins</groupId>
  110. <artifactId>protobuf-maven-plugin</artifactId>
  111. <version>0.6.1</version>
  112. <configuration>
  113. <protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
  114. </protocArtifact>
  115. <pluginId>grpc-java</pluginId>
  116. <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}
  117. </pluginArtifact>
  118. </configuration>
  119. <executions>
  120. <execution>
  121. <goals>
  122. <goal>compile</goal>
  123. <goal>compile-custom</goal>
  124. </goals>
  125. </execution>
  126. </executions>
  127. </plugin>
  128. <plugin>
  129. <groupId>org.apache.maven.plugins</groupId>
  130. <artifactId>maven-gpg-plugin</artifactId>
  131. <version>1.5</version>
  132. <executions>
  133. <execution>
  134. <id>sign-artifacts</id>
  135. <phase>verify</phase>
  136. <goals>
  137. <goal>sign</goal>
  138. </goals>
  139. </execution>
  140. </executions>
  141. </plugin>
  142. <plugin>
  143. <groupId>org.sonatype.central</groupId>
  144. <artifactId>central-publishing-maven-plugin</artifactId>
  145. <version>0.5.0</version>
  146. <extensions>true</extensions>
  147. <configuration>
  148. <publishingServerId>central</publishingServerId>
  149. <autoPublish>true</autoPublish>
  150. </configuration>
  151. </plugin>
  152. <plugin>
  153. <groupId>org.apache.maven.plugins</groupId>
  154. <artifactId>maven-source-plugin</artifactId>
  155. <version>2.2.1</version>
  156. <executions>
  157. <execution>
  158. <id>attach-sources</id>
  159. <goals>
  160. <goal>jar-no-fork</goal>
  161. </goals>
  162. </execution>
  163. </executions>
  164. </plugin>
  165. <plugin>
  166. <groupId>org.apache.maven.plugins</groupId>
  167. <artifactId>maven-javadoc-plugin</artifactId>
  168. <version>3.0.1</version>
  169. <executions>
  170. <execution>
  171. <id>attach-javadocs</id>
  172. <goals>
  173. <goal>jar</goal>
  174. </goals>
  175. </execution>
  176. </executions>
  177. </plugin>
  178. </plugins>
  179. </build>
  180. </project>