pom.xml.deploy 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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.59</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.9.1</protobuf.version>
  15. <!-- follow https://github.com/grpc/grpc-java -->
  16. <grpc.version>1.23.0</grpc.version>
  17. <guava.version>28.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.12</version>
  65. <scope>test</scope>
  66. </dependency>
  67. </dependencies>
  68. <distributionManagement>
  69. <snapshotRepository>
  70. <id>ossrh</id>
  71. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  72. </snapshotRepository>
  73. </distributionManagement>
  74. <build>
  75. <extensions>
  76. <extension>
  77. <groupId>kr.motd.maven</groupId>
  78. <artifactId>os-maven-plugin</artifactId>
  79. <version>1.6.2</version>
  80. </extension>
  81. </extensions>
  82. <plugins>
  83. <plugin>
  84. <groupId>org.apache.maven.plugins</groupId>
  85. <artifactId>maven-compiler-plugin</artifactId>
  86. <configuration>
  87. <source>8</source>
  88. <target>8</target>
  89. <release>8</release>
  90. </configuration>
  91. </plugin>
  92. <plugin>
  93. <groupId>org.xolstice.maven.plugins</groupId>
  94. <artifactId>protobuf-maven-plugin</artifactId>
  95. <version>0.6.1</version>
  96. <configuration>
  97. <protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
  98. </protocArtifact>
  99. <pluginId>grpc-java</pluginId>
  100. <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}
  101. </pluginArtifact>
  102. </configuration>
  103. <executions>
  104. <execution>
  105. <goals>
  106. <goal>compile</goal>
  107. <goal>compile-custom</goal>
  108. </goals>
  109. </execution>
  110. </executions>
  111. </plugin>
  112. <plugin>
  113. <groupId>org.apache.maven.plugins</groupId>
  114. <artifactId>maven-gpg-plugin</artifactId>
  115. <version>1.5</version>
  116. <executions>
  117. <execution>
  118. <id>sign-artifacts</id>
  119. <phase>verify</phase>
  120. <goals>
  121. <goal>sign</goal>
  122. </goals>
  123. </execution>
  124. </executions>
  125. </plugin>
  126. <plugin>
  127. <groupId>org.sonatype.plugins</groupId>
  128. <artifactId>nexus-staging-maven-plugin</artifactId>
  129. <version>1.6.8</version>
  130. <extensions>true</extensions>
  131. <configuration>
  132. <serverId>ossrh</serverId>
  133. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  134. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  135. </configuration>
  136. </plugin>
  137. <plugin>
  138. <groupId>org.apache.maven.plugins</groupId>
  139. <artifactId>maven-source-plugin</artifactId>
  140. <version>2.2.1</version>
  141. <executions>
  142. <execution>
  143. <id>attach-sources</id>
  144. <goals>
  145. <goal>jar-no-fork</goal>
  146. </goals>
  147. </execution>
  148. </executions>
  149. </plugin>
  150. <plugin>
  151. <groupId>org.apache.maven.plugins</groupId>
  152. <artifactId>maven-javadoc-plugin</artifactId>
  153. <version>3.0.1</version>
  154. <executions>
  155. <execution>
  156. <id>attach-javadocs</id>
  157. <goals>
  158. <goal>jar</goal>
  159. </goals>
  160. </execution>
  161. </executions>
  162. </plugin>
  163. </plugins>
  164. </build>
  165. </project>