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.

137 lines
5.1 KiB

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