2
0

pom.xml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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://www.milvus.io/</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. <connection>scm:git:https://github.com/milvus-io/milvus-sdk-java.git</connection>
  22. <url>https://github.com/milvus-io/milvus-sdk-java</url>
  23. </scm>
  24. <distributionManagement>
  25. <snapshotRepository>
  26. <id>ossrh</id>
  27. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  28. </snapshotRepository>
  29. </distributionManagement>
  30. <properties>
  31. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  32. <grpc.version>1.24.0</grpc.version>
  33. <protobuf.version>3.9.0</protobuf.version>
  34. <protoc.version>3.9.0</protoc.version>
  35. <maven.compiler.source>1.8</maven.compiler.source>
  36. <maven.compiler.target>1.8</maven.compiler.target>
  37. </properties>
  38. <dependencyManagement>
  39. <dependencies>
  40. <dependency>
  41. <groupId>io.grpc</groupId>
  42. <artifactId>grpc-bom</artifactId>
  43. <version>${grpc.version}</version>
  44. <type>pom</type>
  45. <scope>import</scope>
  46. </dependency>
  47. </dependencies>
  48. </dependencyManagement>
  49. <dependencies>
  50. <dependency>
  51. <groupId>io.grpc</groupId>
  52. <artifactId>grpc-netty-shaded</artifactId>
  53. <scope>runtime</scope>
  54. </dependency>
  55. <dependency>
  56. <groupId>io.grpc</groupId>
  57. <artifactId>grpc-protobuf</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>io.grpc</groupId>
  61. <artifactId>grpc-stub</artifactId>
  62. </dependency>
  63. <dependency>
  64. <groupId>javax.annotation</groupId>
  65. <artifactId>javax.annotation-api</artifactId>
  66. <version>1.2</version>
  67. <scope>provided</scope> <!-- not needed at runtime -->
  68. </dependency>
  69. <dependency>
  70. <groupId>io.grpc</groupId>
  71. <artifactId>grpc-testing</artifactId>
  72. <scope>test</scope>
  73. </dependency>
  74. <dependency>
  75. <groupId>com.google.protobuf</groupId>
  76. <artifactId>protobuf-java-util</artifactId>
  77. <version>${protobuf.version}</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.junit.jupiter</groupId>
  81. <artifactId>junit-jupiter</artifactId>
  82. <version>RELEASE</version>
  83. <scope>test</scope>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.apache.commons</groupId>
  87. <artifactId>commons-text</artifactId>
  88. <version>1.6</version>
  89. </dependency>
  90. </dependencies>
  91. <profiles>
  92. <profile>
  93. <id>release</id>
  94. <build>
  95. <plugins>
  96. <plugin>
  97. <groupId>org.sonatype.plugins</groupId>
  98. <artifactId>nexus-staging-maven-plugin</artifactId>
  99. <version>1.6.8</version>
  100. <extensions>true</extensions>
  101. <configuration>
  102. <serverId>ossrh</serverId>
  103. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  104. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  105. </configuration>
  106. </plugin>
  107. <plugin>
  108. <groupId>org.apache.maven.plugins</groupId>
  109. <artifactId>maven-source-plugin</artifactId>
  110. <version>3.1.0</version>
  111. <executions>
  112. <execution>
  113. <id>attach-sources</id>
  114. <goals>
  115. <goal>jar-no-fork</goal>
  116. </goals>
  117. </execution>
  118. </executions>
  119. </plugin>
  120. <plugin>
  121. <groupId>org.apache.maven.plugins</groupId>
  122. <artifactId>maven-javadoc-plugin</artifactId>
  123. <version>3.1.1</version>
  124. <executions>
  125. <execution>
  126. <id>attach-javadocs</id>
  127. <goals>
  128. <goal>jar</goal>
  129. </goals>
  130. </execution>
  131. </executions>
  132. </plugin>
  133. <plugin>
  134. <groupId>org.apache.maven.plugins</groupId>
  135. <artifactId>maven-gpg-plugin</artifactId>
  136. <version>1.6</version>
  137. <executions>
  138. <execution>
  139. <id>sign-artifacts</id>
  140. <phase>verify</phase>
  141. <goals>
  142. <goal>sign</goal>
  143. </goals>
  144. </execution>
  145. </executions>
  146. </plugin>
  147. </plugins>
  148. </build>
  149. </profile>
  150. </profiles>
  151. <build>
  152. <extensions>
  153. <extension>
  154. <groupId>kr.motd.maven</groupId>
  155. <artifactId>os-maven-plugin</artifactId>
  156. <version>1.6.2</version>
  157. </extension>
  158. </extensions>
  159. <plugins>
  160. <plugin>
  161. <groupId>org.apache.maven.plugins</groupId>
  162. <artifactId>maven-release-plugin</artifactId>
  163. <version>2.5.3</version>
  164. <configuration>
  165. <autoVersionSubmodules>true</autoVersionSubmodules>
  166. <useReleaseProfile>false</useReleaseProfile>
  167. <releaseProfiles>release</releaseProfiles>
  168. <goals>deploy</goals>
  169. </configuration>
  170. </plugin>
  171. <plugin>
  172. <groupId>org.xolstice.maven.plugins</groupId>
  173. <artifactId>protobuf-maven-plugin</artifactId>
  174. <version>0.6.1</version>
  175. <configuration>
  176. <protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}</protocArtifact>
  177. <pluginId>grpc-java</pluginId>
  178. <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
  179. </configuration>
  180. <executions>
  181. <execution>
  182. <goals>
  183. <goal>compile</goal>
  184. <goal>compile-custom</goal>
  185. </goals>
  186. </execution>
  187. </executions>
  188. </plugin>
  189. <plugin>
  190. <groupId>org.apache.maven.plugins</groupId>
  191. <artifactId>maven-enforcer-plugin</artifactId>
  192. <version>1.4.1</version>
  193. <executions>
  194. <execution>
  195. <id>enforce</id>
  196. <goals>
  197. <goal>enforce</goal>
  198. </goals>
  199. <configuration>
  200. <rules>
  201. <requireUpperBoundDeps/>
  202. </rules>
  203. </configuration>
  204. </execution>
  205. </executions>
  206. </plugin>
  207. </plugins>
  208. </build>
  209. </project>