pom.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  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.2.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. </dependencies>
  128. <profiles>
  129. <profile>
  130. <id>release</id>
  131. <build>
  132. <plugins>
  133. <plugin>
  134. <groupId>org.apache.maven.plugins</groupId>
  135. <artifactId>maven-source-plugin</artifactId>
  136. <version>3.1.0</version>
  137. <executions>
  138. <execution>
  139. <id>attach-sources</id>
  140. <goals>
  141. <goal>jar-no-fork</goal>
  142. </goals>
  143. </execution>
  144. </executions>
  145. </plugin>
  146. <plugin>
  147. <groupId>org.apache.maven.plugins</groupId>
  148. <artifactId>maven-javadoc-plugin</artifactId>
  149. <version>3.1.1</version>
  150. <configuration>
  151. <javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
  152. </configuration>
  153. <executions>
  154. <execution>
  155. <id>attach-javadocs</id>
  156. <goals>
  157. <goal>jar</goal>
  158. </goals>
  159. </execution>
  160. </executions>
  161. </plugin>
  162. <plugin>
  163. <groupId>org.apache.maven.plugins</groupId>
  164. <artifactId>maven-gpg-plugin</artifactId>
  165. <version>1.6</version>
  166. <executions>
  167. <execution>
  168. <id>sign-artifacts</id>
  169. <phase>verify</phase>
  170. <goals>
  171. <goal>sign</goal>
  172. </goals>
  173. </execution>
  174. </executions>
  175. </plugin>
  176. </plugins>
  177. </build>
  178. </profile>
  179. </profiles>
  180. <build>
  181. <extensions>
  182. <extension>
  183. <groupId>kr.motd.maven</groupId>
  184. <artifactId>os-maven-plugin</artifactId>
  185. <version>1.6.2</version>
  186. </extension>
  187. </extensions>
  188. <plugins>
  189. <plugin>
  190. <groupId>org.sonatype.plugins</groupId>
  191. <artifactId>nexus-staging-maven-plugin</artifactId>
  192. <version>1.6.8</version>
  193. <extensions>true</extensions>
  194. <configuration>
  195. <serverId>ossrh</serverId>
  196. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  197. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  198. </configuration>
  199. </plugin>
  200. <plugin>
  201. <groupId>org.apache.maven.plugins</groupId>
  202. <artifactId>maven-release-plugin</artifactId>
  203. <version>2.5.3</version>
  204. <configuration>
  205. <autoVersionSubmodules>true</autoVersionSubmodules>
  206. <useReleaseProfile>false</useReleaseProfile>
  207. <releaseProfiles>release</releaseProfiles>
  208. <goals>deploy</goals>
  209. </configuration>
  210. </plugin>
  211. <plugin>
  212. <groupId>org.xolstice.maven.plugins</groupId>
  213. <artifactId>protobuf-maven-plugin</artifactId>
  214. <version>0.6.1</version>
  215. <configuration>
  216. <protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}
  217. </protocArtifact>
  218. <pluginId>grpc-java</pluginId>
  219. <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}
  220. </pluginArtifact>
  221. </configuration>
  222. <executions>
  223. <execution>
  224. <goals>
  225. <goal>compile</goal>
  226. <goal>compile-custom</goal>
  227. </goals>
  228. </execution>
  229. </executions>
  230. </plugin>
  231. <plugin>
  232. <groupId>org.apache.maven.plugins</groupId>
  233. <artifactId>maven-enforcer-plugin</artifactId>
  234. <version>3.0.0-M2</version>
  235. <executions>
  236. <execution>
  237. <id>enforce</id>
  238. <configuration>
  239. <rules>
  240. <requireUpperBoundDeps>
  241. <excludes>
  242. <exclude>com.google.guava:guava</exclude>
  243. <exclude>com.google.errorprone:error_prone_annotations</exclude>
  244. <exclude>com.google.protobuf:protobuf-java</exclude>
  245. </excludes>
  246. </requireUpperBoundDeps>
  247. </rules>
  248. </configuration>
  249. <goals>
  250. <goal>enforce</goal>
  251. </goals>
  252. </execution>
  253. </executions>
  254. </plugin>
  255. </plugins>
  256. </build>
  257. </project>