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.

70 lines
2.5 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>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. </properties>
  13. <dependencies>
  14. <!-- https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java -->
  15. <dependency>
  16. <groupId>com.google.protobuf</groupId>
  17. <artifactId>protobuf-java</artifactId>
  18. <version>${protobuf.version}</version>
  19. </dependency>
  20. <dependency>
  21. <groupId>io.grpc</groupId>
  22. <artifactId>grpc-netty-shaded</artifactId>
  23. <version>${grpc.version}</version>
  24. </dependency>
  25. <dependency>
  26. <groupId>io.grpc</groupId>
  27. <artifactId>grpc-protobuf</artifactId>
  28. <version>${grpc.version}</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>io.grpc</groupId>
  32. <artifactId>grpc-stub</artifactId>
  33. <version>${grpc.version}</version>
  34. </dependency>
  35. </dependencies>
  36. <build>
  37. <extensions>
  38. <extension>
  39. <groupId>kr.motd.maven</groupId>
  40. <artifactId>os-maven-plugin</artifactId>
  41. <version>1.5.0.Final</version>
  42. </extension>
  43. </extensions>
  44. <plugins>
  45. <plugin>
  46. <groupId>org.xolstice.maven.plugins</groupId>
  47. <artifactId>protobuf-maven-plugin</artifactId>
  48. <version>0.5.1</version>
  49. <configuration>
  50. <protocArtifact>com.google.protobuf:protoc:${protobuf.version}-1:exe:${os.detected.classifier}</protocArtifact>
  51. <pluginId>grpc-java</pluginId>
  52. <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
  53. </configuration>
  54. <executions>
  55. <execution>
  56. <goals>
  57. <goal>compile</goal>
  58. <goal>compile-custom</goal>
  59. </goals>
  60. </execution>
  61. </executions>
  62. </plugin>
  63. </plugins>
  64. </build>
  65. </project>