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.

142 lines
5.3 KiB

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.3</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. </dependencies>
  50. <distributionManagement>
  51. <snapshotRepository>
  52. <id>ossrh</id>
  53. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  54. </snapshotRepository>
  55. </distributionManagement>
  56. <build>
  57. <extensions>
  58. <extension>
  59. <groupId>kr.motd.maven</groupId>
  60. <artifactId>os-maven-plugin</artifactId>
  61. <version>1.5.0.Final</version>
  62. </extension>
  63. </extensions>
  64. <plugins>
  65. <plugin>
  66. <groupId>org.xolstice.maven.plugins</groupId>
  67. <artifactId>protobuf-maven-plugin</artifactId>
  68. <version>0.5.1</version>
  69. <configuration>
  70. <protocArtifact>com.google.protobuf:protoc:${protobuf.version}-1:exe:${os.detected.classifier}</protocArtifact>
  71. <pluginId>grpc-java</pluginId>
  72. <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
  73. </configuration>
  74. <executions>
  75. <execution>
  76. <goals>
  77. <goal>compile</goal>
  78. <goal>compile-custom</goal>
  79. </goals>
  80. </execution>
  81. </executions>
  82. </plugin>
  83. <plugin>
  84. <groupId>org.apache.maven.plugins</groupId>
  85. <artifactId>maven-gpg-plugin</artifactId>
  86. <version>1.5</version>
  87. <executions>
  88. <execution>
  89. <id>sign-artifacts</id>
  90. <phase>verify</phase>
  91. <goals>
  92. <goal>sign</goal>
  93. </goals>
  94. </execution>
  95. </executions>
  96. </plugin>
  97. <plugin>
  98. <groupId>org.sonatype.plugins</groupId>
  99. <artifactId>nexus-staging-maven-plugin</artifactId>
  100. <version>1.6.7</version>
  101. <extensions>true</extensions>
  102. <configuration>
  103. <serverId>ossrh</serverId>
  104. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  105. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  106. </configuration>
  107. </plugin>
  108. <plugin>
  109. <groupId>org.apache.maven.plugins</groupId>
  110. <artifactId>maven-source-plugin</artifactId>
  111. <version>2.2.1</version>
  112. <executions>
  113. <execution>
  114. <id>attach-sources</id>
  115. <goals>
  116. <goal>jar-no-fork</goal>
  117. </goals>
  118. </execution>
  119. </executions>
  120. </plugin>
  121. <plugin>
  122. <groupId>org.apache.maven.plugins</groupId>
  123. <artifactId>maven-javadoc-plugin</artifactId>
  124. <version>2.9.1</version>
  125. <executions>
  126. <execution>
  127. <id>attach-javadocs</id>
  128. <goals>
  129. <goal>jar</goal>
  130. </goals>
  131. </execution>
  132. </executions>
  133. </plugin>
  134. </plugins>
  135. </build>
  136. </project>