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.

145 lines
5.2 KiB

1 month ago
1 month ago
1 month ago
2 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"
  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.seaweedfs</groupId>
  6. <artifactId>seaweedfs-client</artifactId>
  7. <version>3.80</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.25.5</protobuf.version>
  15. <!-- follow https://github.com/grpc/grpc-java -->
  16. <grpc.version>1.68.1</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.13.1</version>
  65. <scope>test</scope>
  66. </dependency>
  67. <dependency>
  68. <groupId>javax.annotation</groupId>
  69. <artifactId>javax.annotation-api</artifactId>
  70. <version>1.3.2</version>
  71. </dependency>
  72. </dependencies>
  73. <build>
  74. <extensions>
  75. <extension>
  76. <groupId>kr.motd.maven</groupId>
  77. <artifactId>os-maven-plugin</artifactId>
  78. <version>1.6.2</version>
  79. </extension>
  80. </extensions>
  81. <plugins>
  82. <plugin>
  83. <groupId>org.apache.maven.plugins</groupId>
  84. <artifactId>maven-compiler-plugin</artifactId>
  85. <configuration>
  86. <source>8</source>
  87. <target>8</target>
  88. <release>8</release>
  89. </configuration>
  90. </plugin>
  91. <plugin>
  92. <groupId>org.xolstice.maven.plugins</groupId>
  93. <artifactId>protobuf-maven-plugin</artifactId>
  94. <version>0.6.1</version>
  95. <configuration>
  96. <protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
  97. </protocArtifact>
  98. <pluginId>grpc-java</pluginId>
  99. <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}
  100. </pluginArtifact>
  101. </configuration>
  102. <executions>
  103. <execution>
  104. <goals>
  105. <goal>compile</goal>
  106. <goal>compile-custom</goal>
  107. </goals>
  108. </execution>
  109. </executions>
  110. </plugin>
  111. <plugin>
  112. <groupId>org.apache.maven.plugins</groupId>
  113. <artifactId>maven-source-plugin</artifactId>
  114. <version>2.2.1</version>
  115. <executions>
  116. <execution>
  117. <id>attach-sources</id>
  118. <goals>
  119. <goal>jar-no-fork</goal>
  120. </goals>
  121. </execution>
  122. </executions>
  123. </plugin>
  124. <plugin>
  125. <groupId>org.apache.maven.plugins</groupId>
  126. <artifactId>maven-javadoc-plugin</artifactId>
  127. <version>3.0.1</version>
  128. <executions>
  129. <execution>
  130. <id>attach-javadocs</id>
  131. <goals>
  132. <goal>jar</goal>
  133. </goals>
  134. </execution>
  135. </executions>
  136. </plugin>
  137. </plugins>
  138. </build>
  139. </project>