You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

175 lines
6.4 KiB

6 years ago
3 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
4 years ago
6 years ago
6 years ago
3 years ago
6 years ago
  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.github.chrislusf</groupId>
  6. <artifactId>seaweedfs-client</artifactId>
  7. <version>3.13</version>
  8. <parent>
  9. <groupId>org.sonatype.oss</groupId>
  10. <artifactId>oss-parent</artifactId>
  11. <version>9</version>
  12. </parent>
  13. <properties>
  14. <protobuf.version>3.16.1</protobuf.version>
  15. <!-- follow https://github.com/grpc/grpc-java -->
  16. <grpc.version>1.23.0</grpc.version>
  17. <guava.version>30.0-jre</guava.version>
  18. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>com.moandjiezana.toml</groupId>
  22. <artifactId>toml4j</artifactId>
  23. <version>0.7.2</version>
  24. </dependency>
  25. <!-- https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java -->
  26. <dependency>
  27. <groupId>com.google.protobuf</groupId>
  28. <artifactId>protobuf-java</artifactId>
  29. <version>${protobuf.version}</version>
  30. </dependency>
  31. <dependency>
  32. <groupId>com.google.guava</groupId>
  33. <artifactId>guava</artifactId>
  34. <version>${guava.version}</version>
  35. </dependency>
  36. <dependency>
  37. <groupId>io.grpc</groupId>
  38. <artifactId>grpc-netty-shaded</artifactId>
  39. <version>${grpc.version}</version>
  40. </dependency>
  41. <dependency>
  42. <groupId>io.grpc</groupId>
  43. <artifactId>grpc-protobuf</artifactId>
  44. <version>${grpc.version}</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>io.grpc</groupId>
  48. <artifactId>grpc-stub</artifactId>
  49. <version>${grpc.version}</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.slf4j</groupId>
  53. <artifactId>slf4j-api</artifactId>
  54. <version>1.7.25</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.apache.httpcomponents</groupId>
  58. <artifactId>httpmime</artifactId>
  59. <version>4.5.13</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>junit</groupId>
  63. <artifactId>junit</artifactId>
  64. <version>4.13.1</version>
  65. <scope>test</scope>
  66. </dependency>
  67. <dependency>
  68. <groupId>javax.annotation</groupId>
  69. <artifactId>javax.annotation-api</artifactId>
  70. <version>1.3.2</version>
  71. </dependency>
  72. </dependencies>
  73. <distributionManagement>
  74. <snapshotRepository>
  75. <id>ossrh</id>
  76. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  77. </snapshotRepository>
  78. </distributionManagement>
  79. <build>
  80. <extensions>
  81. <extension>
  82. <groupId>kr.motd.maven</groupId>
  83. <artifactId>os-maven-plugin</artifactId>
  84. <version>1.6.2</version>
  85. </extension>
  86. </extensions>
  87. <plugins>
  88. <plugin>
  89. <groupId>org.apache.maven.plugins</groupId>
  90. <artifactId>maven-compiler-plugin</artifactId>
  91. <configuration>
  92. <source>8</source>
  93. <target>8</target>
  94. </configuration>
  95. </plugin>
  96. <plugin>
  97. <groupId>org.xolstice.maven.plugins</groupId>
  98. <artifactId>protobuf-maven-plugin</artifactId>
  99. <version>0.6.1</version>
  100. <configuration>
  101. <protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
  102. </protocArtifact>
  103. <pluginId>grpc-java</pluginId>
  104. <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}
  105. </pluginArtifact>
  106. </configuration>
  107. <executions>
  108. <execution>
  109. <goals>
  110. <goal>compile</goal>
  111. <goal>compile-custom</goal>
  112. </goals>
  113. </execution>
  114. </executions>
  115. </plugin>
  116. <plugin>
  117. <groupId>org.apache.maven.plugins</groupId>
  118. <artifactId>maven-gpg-plugin</artifactId>
  119. <version>1.5</version>
  120. <executions>
  121. <execution>
  122. <id>sign-artifacts</id>
  123. <phase>verify</phase>
  124. <goals>
  125. <goal>sign</goal>
  126. </goals>
  127. </execution>
  128. </executions>
  129. </plugin>
  130. <plugin>
  131. <groupId>org.sonatype.plugins</groupId>
  132. <artifactId>nexus-staging-maven-plugin</artifactId>
  133. <version>1.6.8</version>
  134. <extensions>true</extensions>
  135. <configuration>
  136. <serverId>ossrh</serverId>
  137. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  138. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  139. </configuration>
  140. </plugin>
  141. <plugin>
  142. <groupId>org.apache.maven.plugins</groupId>
  143. <artifactId>maven-source-plugin</artifactId>
  144. <version>2.2.1</version>
  145. <executions>
  146. <execution>
  147. <id>attach-sources</id>
  148. <goals>
  149. <goal>jar-no-fork</goal>
  150. </goals>
  151. </execution>
  152. </executions>
  153. </plugin>
  154. <plugin>
  155. <groupId>org.apache.maven.plugins</groupId>
  156. <artifactId>maven-javadoc-plugin</artifactId>
  157. <version>2.9.1</version>
  158. <executions>
  159. <execution>
  160. <id>attach-javadocs</id>
  161. <goals>
  162. <goal>jar</goal>
  163. </goals>
  164. </execution>
  165. </executions>
  166. </plugin>
  167. </plugins>
  168. </build>
  169. </project>