pom.xml 10 KB

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