pom.xml 8.4 KB

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