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.

167 lines
6.1 KiB

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