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.

76 lines
2.8 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>seaweedfs</groupId>
  7. <artifactId>seaweedfs-client</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <properties>
  10. <protobuf.version>3.5.1</protobuf.version>
  11. <grpc.version>1.16.1</grpc.version>
  12. <guava.version>26.0-jre</guava.version>
  13. </properties>
  14. <dependencies>
  15. <!-- https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java -->
  16. <dependency>
  17. <groupId>com.google.protobuf</groupId>
  18. <artifactId>protobuf-java</artifactId>
  19. <version>${protobuf.version}</version>
  20. </dependency>
  21. <dependency>
  22. <groupId>com.google.guava</groupId>
  23. <artifactId>guava</artifactId>
  24. <version>${guava.version}</version>
  25. </dependency>
  26. <dependency>
  27. <groupId>io.grpc</groupId>
  28. <artifactId>grpc-netty-shaded</artifactId>
  29. <version>${grpc.version}</version>
  30. </dependency>
  31. <dependency>
  32. <groupId>io.grpc</groupId>
  33. <artifactId>grpc-protobuf</artifactId>
  34. <version>${grpc.version}</version>
  35. </dependency>
  36. <dependency>
  37. <groupId>io.grpc</groupId>
  38. <artifactId>grpc-stub</artifactId>
  39. <version>${grpc.version}</version>
  40. </dependency>
  41. </dependencies>
  42. <build>
  43. <extensions>
  44. <extension>
  45. <groupId>kr.motd.maven</groupId>
  46. <artifactId>os-maven-plugin</artifactId>
  47. <version>1.5.0.Final</version>
  48. </extension>
  49. </extensions>
  50. <plugins>
  51. <plugin>
  52. <groupId>org.xolstice.maven.plugins</groupId>
  53. <artifactId>protobuf-maven-plugin</artifactId>
  54. <version>0.5.1</version>
  55. <configuration>
  56. <protocArtifact>com.google.protobuf:protoc:${protobuf.version}-1:exe:${os.detected.classifier}</protocArtifact>
  57. <pluginId>grpc-java</pluginId>
  58. <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
  59. </configuration>
  60. <executions>
  61. <execution>
  62. <goals>
  63. <goal>compile</goal>
  64. <goal>compile-custom</goal>
  65. </goals>
  66. </execution>
  67. </executions>
  68. </plugin>
  69. </plugins>
  70. </build>
  71. </project>