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.

139 lines
5.0 KiB

  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>1.4.6</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.6</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. <build>
  69. <extensions>
  70. <extension>
  71. <groupId>kr.motd.maven</groupId>
  72. <artifactId>os-maven-plugin</artifactId>
  73. <version>1.6.2</version>
  74. </extension>
  75. </extensions>
  76. <plugins>
  77. <plugin>
  78. <groupId>org.apache.maven.plugins</groupId>
  79. <artifactId>maven-compiler-plugin</artifactId>
  80. <configuration>
  81. <source>8</source>
  82. <target>8</target>
  83. </configuration>
  84. </plugin>
  85. <plugin>
  86. <groupId>org.xolstice.maven.plugins</groupId>
  87. <artifactId>protobuf-maven-plugin</artifactId>
  88. <version>0.6.1</version>
  89. <configuration>
  90. <protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
  91. </protocArtifact>
  92. <pluginId>grpc-java</pluginId>
  93. <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}
  94. </pluginArtifact>
  95. </configuration>
  96. <executions>
  97. <execution>
  98. <goals>
  99. <goal>compile</goal>
  100. <goal>compile-custom</goal>
  101. </goals>
  102. </execution>
  103. </executions>
  104. </plugin>
  105. <plugin>
  106. <groupId>org.apache.maven.plugins</groupId>
  107. <artifactId>maven-source-plugin</artifactId>
  108. <version>2.2.1</version>
  109. <executions>
  110. <execution>
  111. <id>attach-sources</id>
  112. <goals>
  113. <goal>jar-no-fork</goal>
  114. </goals>
  115. </execution>
  116. </executions>
  117. </plugin>
  118. <plugin>
  119. <groupId>org.apache.maven.plugins</groupId>
  120. <artifactId>maven-javadoc-plugin</artifactId>
  121. <version>2.9.1</version>
  122. <executions>
  123. <execution>
  124. <id>attach-javadocs</id>
  125. <goals>
  126. <goal>jar</goal>
  127. </goals>
  128. </execution>
  129. </executions>
  130. </plugin>
  131. </plugins>
  132. </build>
  133. </project>