pom.xml 4.7 KB

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