pom.xml 5.1 KB

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