pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Licensed to the Apache Software Foundation (ASF) under one
  4. ~ or more contributor license agreements. See the NOTICE file
  5. ~ distributed with this work for additional information
  6. ~ regarding copyright ownership. The ASF licenses this file
  7. ~ to you under the Apache License, Version 2.0 (the
  8. ~ "License"); you may not use this file except in compliance
  9. ~ with the License. You may obtain a copy of the License at
  10. ~
  11. ~ http://www.apache.org/licenses/LICENSE-2.0
  12. ~
  13. ~ Unless required by applicable law or agreed to in writing,
  14. ~ software distributed under the License is distributed on an
  15. ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16. ~ KIND, either express or implied. See the License for the
  17. ~ specific language governing permissions and limitations
  18. ~ under the License.
  19. -->
  20. <project xmlns="http://maven.apache.org/POM/4.0.0"
  21. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  22. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  23. <modelVersion>4.0.0</modelVersion>
  24. <groupId>io.milvus</groupId>
  25. <artifactId>milvus-sdk-java</artifactId>
  26. <version>0.3.0</version>
  27. <packaging>jar</packaging>
  28. <name>io.milvus:milvus-sdk-java</name>
  29. <description>Java SDK for Milvus distributed high-performance vector search engine.</description>
  30. <url>https://github.com/milvus-io/milvus-sdk-java</url>
  31. <licenses>
  32. <license>
  33. <name>Apache License, Version 2.0</name>
  34. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  35. <distribution>repo</distribution>
  36. </license>
  37. </licenses>
  38. <developers>
  39. <developer>
  40. <name>Zhiru Zhu</name>
  41. <email>zhiru.zhu@zilliz.com</email>
  42. <organization>Milvus</organization>
  43. <organizationUrl>http://www.milvus.io</organizationUrl>
  44. </developer>
  45. </developers>
  46. <scm>
  47. <connection>scm:git:https://github.com/milvus-io/milvus-sdk-java.git</connection>
  48. <developerConnection>scm:git:https://github.com/milvus-io/milvus-sdk-java.git</developerConnection>
  49. <url>https://github.com/milvus-io/milvus-sdk-java</url>
  50. </scm>
  51. <distributionManagement>
  52. <snapshotRepository>
  53. <id>ossrh</id>
  54. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  55. </snapshotRepository>
  56. </distributionManagement>
  57. <properties>
  58. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  59. <grpc.version>1.24.0</grpc.version>
  60. <protobuf.version>3.10.0</protobuf.version>
  61. <protoc.version>3.10.0</protoc.version>
  62. <maven.compiler.source>1.8</maven.compiler.source>
  63. <maven.compiler.target>1.8</maven.compiler.target>
  64. </properties>
  65. <dependencyManagement>
  66. <dependencies>
  67. <dependency>
  68. <groupId>io.grpc</groupId>
  69. <artifactId>grpc-bom</artifactId>
  70. <version>${grpc.version}</version>
  71. <type>pom</type>
  72. <scope>import</scope>
  73. </dependency>
  74. </dependencies>
  75. </dependencyManagement>
  76. <dependencies>
  77. <dependency>
  78. <groupId>org.apache.maven.plugins</groupId>
  79. <artifactId>maven-gpg-plugin</artifactId>
  80. <version>1.6</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>com.google.googlejavaformat</groupId>
  84. <artifactId>google-java-format</artifactId>
  85. <version>1.7</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>io.grpc</groupId>
  89. <artifactId>grpc-netty-shaded</artifactId>
  90. <scope>runtime</scope>
  91. </dependency>
  92. <dependency>
  93. <groupId>io.grpc</groupId>
  94. <artifactId>grpc-protobuf</artifactId>
  95. </dependency>
  96. <dependency>
  97. <groupId>io.grpc</groupId>
  98. <artifactId>grpc-stub</artifactId>
  99. </dependency>
  100. <dependency>
  101. <groupId>javax.annotation</groupId>
  102. <artifactId>javax.annotation-api</artifactId>
  103. <version>1.2</version>
  104. <scope>provided</scope> <!-- not needed at runtime -->
  105. </dependency>
  106. <dependency>
  107. <groupId>io.grpc</groupId>
  108. <artifactId>grpc-testing</artifactId>
  109. <scope>test</scope>
  110. </dependency>
  111. <dependency>
  112. <groupId>com.google.protobuf</groupId>
  113. <artifactId>protobuf-java-util</artifactId>
  114. <version>${protobuf.version}</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.junit.jupiter</groupId>
  118. <artifactId>junit-jupiter</artifactId>
  119. <version>5.5.2</version>
  120. <scope>test</scope>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.apache.commons</groupId>
  124. <artifactId>commons-text</artifactId>
  125. <version>1.6</version>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.apache.commons</groupId>
  129. <artifactId>commons-collections4</artifactId>
  130. <version>4.4</version>
  131. </dependency>
  132. </dependencies>
  133. <profiles>
  134. <profile>
  135. <id>release</id>
  136. <build>
  137. <plugins>
  138. <plugin>
  139. <groupId>org.apache.maven.plugins</groupId>
  140. <artifactId>maven-source-plugin</artifactId>
  141. <version>3.1.0</version>
  142. <executions>
  143. <execution>
  144. <id>attach-sources</id>
  145. <goals>
  146. <goal>jar-no-fork</goal>
  147. </goals>
  148. </execution>
  149. </executions>
  150. </plugin>
  151. <plugin>
  152. <groupId>org.apache.maven.plugins</groupId>
  153. <artifactId>maven-javadoc-plugin</artifactId>
  154. <version>3.1.1</version>
  155. <configuration>
  156. <javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
  157. </configuration>
  158. <executions>
  159. <execution>
  160. <id>attach-javadocs</id>
  161. <goals>
  162. <goal>jar</goal>
  163. </goals>
  164. </execution>
  165. </executions>
  166. </plugin>
  167. <plugin>
  168. <groupId>org.apache.maven.plugins</groupId>
  169. <artifactId>maven-gpg-plugin</artifactId>
  170. <version>1.6</version>
  171. <executions>
  172. <execution>
  173. <id>sign-artifacts</id>
  174. <phase>verify</phase>
  175. <goals>
  176. <goal>sign</goal>
  177. </goals>
  178. </execution>
  179. </executions>
  180. </plugin>
  181. </plugins>
  182. </build>
  183. </profile>
  184. </profiles>
  185. <build>
  186. <extensions>
  187. <extension>
  188. <groupId>kr.motd.maven</groupId>
  189. <artifactId>os-maven-plugin</artifactId>
  190. <version>1.6.2</version>
  191. </extension>
  192. </extensions>
  193. <plugins>
  194. <plugin>
  195. <groupId>org.sonatype.plugins</groupId>
  196. <artifactId>nexus-staging-maven-plugin</artifactId>
  197. <version>1.6.8</version>
  198. <extensions>true</extensions>
  199. <configuration>
  200. <serverId>ossrh</serverId>
  201. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  202. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  203. </configuration>
  204. </plugin>
  205. <plugin>
  206. <groupId>org.apache.maven.plugins</groupId>
  207. <artifactId>maven-release-plugin</artifactId>
  208. <version>2.5.3</version>
  209. <configuration>
  210. <autoVersionSubmodules>true</autoVersionSubmodules>
  211. <useReleaseProfile>false</useReleaseProfile>
  212. <releaseProfiles>release</releaseProfiles>
  213. <goals>deploy</goals>
  214. </configuration>
  215. </plugin>
  216. <plugin>
  217. <groupId>org.xolstice.maven.plugins</groupId>
  218. <artifactId>protobuf-maven-plugin</artifactId>
  219. <version>0.6.1</version>
  220. <configuration>
  221. <protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}
  222. </protocArtifact>
  223. <pluginId>grpc-java</pluginId>
  224. <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}
  225. </pluginArtifact>
  226. </configuration>
  227. <executions>
  228. <execution>
  229. <goals>
  230. <goal>compile</goal>
  231. <goal>compile-custom</goal>
  232. </goals>
  233. </execution>
  234. </executions>
  235. </plugin>
  236. <plugin>
  237. <groupId>org.apache.maven.plugins</groupId>
  238. <artifactId>maven-enforcer-plugin</artifactId>
  239. <version>3.0.0-M2</version>
  240. <executions>
  241. <execution>
  242. <id>enforce</id>
  243. <configuration>
  244. <rules>
  245. <requireUpperBoundDeps>
  246. <excludes>
  247. <exclude>com.google.guava:guava</exclude>
  248. <exclude>com.google.errorprone:error_prone_annotations</exclude>
  249. <exclude>com.google.protobuf:protobuf-java</exclude>
  250. </excludes>
  251. </requireUpperBoundDeps>
  252. </rules>
  253. </configuration>
  254. <goals>
  255. <goal>enforce</goal>
  256. </goals>
  257. </execution>
  258. </executions>
  259. </plugin>
  260. </plugins>
  261. </build>
  262. </project>