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.

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