pom.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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>io.milvus</groupId>
  7. <artifactId>milvus-sdk-java</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <properties>
  10. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  11. <grpc.version>1.23.0</grpc.version><!-- CURRENT_GRPC_VERSION -->
  12. <protobuf.version>3.9.0</protobuf.version>
  13. <protoc.version>3.9.0</protoc.version>
  14. <maven.compiler.source>1.8</maven.compiler.source>
  15. <maven.compiler.target>1.8</maven.compiler.target>
  16. </properties>
  17. <dependencyManagement>
  18. <dependencies>
  19. <dependency>
  20. <groupId>io.grpc</groupId>
  21. <artifactId>grpc-bom</artifactId>
  22. <version>${grpc.version}</version>
  23. <type>pom</type>
  24. <scope>import</scope>
  25. </dependency>
  26. </dependencies>
  27. </dependencyManagement>
  28. <dependencies>
  29. <dependency>
  30. <groupId>io.grpc</groupId>
  31. <artifactId>grpc-netty-shaded</artifactId>
  32. <scope>runtime</scope>
  33. </dependency>
  34. <dependency>
  35. <groupId>io.grpc</groupId>
  36. <artifactId>grpc-protobuf</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>io.grpc</groupId>
  40. <artifactId>grpc-stub</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>javax.annotation</groupId>
  44. <artifactId>javax.annotation-api</artifactId>
  45. <version>1.2</version>
  46. <scope>provided</scope> <!-- not needed at runtime -->
  47. </dependency>
  48. <dependency>
  49. <groupId>io.grpc</groupId>
  50. <artifactId>grpc-testing</artifactId>
  51. <scope>test</scope>
  52. </dependency>
  53. <dependency>
  54. <groupId>com.google.protobuf</groupId>
  55. <artifactId>protobuf-java-util</artifactId>
  56. <version>${protobuf.version}</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.junit.jupiter</groupId>
  60. <artifactId>junit-jupiter</artifactId>
  61. <version>RELEASE</version>
  62. <scope>test</scope>
  63. </dependency>
  64. <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-text -->
  65. <dependency>
  66. <groupId>org.apache.commons</groupId>
  67. <artifactId>commons-text</artifactId>
  68. <version>1.6</version>
  69. </dependency>
  70. </dependencies>
  71. <build>
  72. <extensions>
  73. <extension>
  74. <groupId>kr.motd.maven</groupId>
  75. <artifactId>os-maven-plugin</artifactId>
  76. <version>1.6.2</version>
  77. </extension>
  78. </extensions>
  79. <plugins>
  80. <plugin>
  81. <groupId>org.xolstice.maven.plugins</groupId>
  82. <artifactId>protobuf-maven-plugin</artifactId>
  83. <version>0.6.1</version>
  84. <configuration>
  85. <protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}</protocArtifact>
  86. <pluginId>grpc-java</pluginId>
  87. <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
  88. </configuration>
  89. <executions>
  90. <execution>
  91. <goals>
  92. <goal>compile</goal>
  93. <goal>compile-custom</goal>
  94. </goals>
  95. </execution>
  96. </executions>
  97. </plugin>
  98. <plugin>
  99. <groupId>org.apache.maven.plugins</groupId>
  100. <artifactId>maven-enforcer-plugin</artifactId>
  101. <version>1.4.1</version>
  102. <executions>
  103. <execution>
  104. <id>enforce</id>
  105. <goals>
  106. <goal>enforce</goal>
  107. </goals>
  108. <configuration>
  109. <rules>
  110. <requireUpperBoundDeps/>
  111. </rules>
  112. </configuration>
  113. </execution>
  114. </executions>
  115. </plugin>
  116. </plugins>
  117. </build>
  118. </project>