seninel部署
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

98 Zeilen
3.4KB

  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. <parent>
  6. <artifactId>sentinel-adapter</artifactId>
  7. <groupId>com.alibaba.csp</groupId>
  8. <version>1.5.1-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>sentinel-grpc-adapter</artifactId>
  12. <packaging>jar</packaging>
  13. <properties>
  14. <grpc.version>1.13.1</grpc.version>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>com.alibaba.csp</groupId>
  19. <artifactId>sentinel-core</artifactId>
  20. </dependency>
  21. <dependency>
  22. <groupId>io.grpc</groupId>
  23. <artifactId>grpc-netty</artifactId>
  24. <version>${grpc.version}</version>
  25. <scope>provided</scope>
  26. </dependency>
  27. <dependency>
  28. <groupId>io.grpc</groupId>
  29. <artifactId>grpc-protobuf</artifactId>
  30. <version>${grpc.version}</version>
  31. <scope>provided</scope>
  32. </dependency>
  33. <dependency>
  34. <groupId>io.grpc</groupId>
  35. <artifactId>grpc-stub</artifactId>
  36. <version>${grpc.version}</version>
  37. <scope>provided</scope>
  38. </dependency>
  39. <!-- workaround for compile in JDK 11 -->
  40. <dependency>
  41. <groupId>javax.annotation</groupId>
  42. <artifactId>javax.annotation-api</artifactId>
  43. <version>1.2</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>junit</groupId>
  47. <artifactId>junit</artifactId>
  48. <scope>test</scope>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.mockito</groupId>
  52. <artifactId>mockito-core</artifactId>
  53. <scope>test</scope>
  54. </dependency>
  55. <dependency>
  56. <groupId>com.alibaba</groupId>
  57. <artifactId>fastjson</artifactId>
  58. <version>${fastjson.version}</version>
  59. <scope>test</scope>
  60. </dependency>
  61. </dependencies>
  62. <build>
  63. <extensions>
  64. <extension>
  65. <groupId>kr.motd.maven</groupId>
  66. <artifactId>os-maven-plugin</artifactId>
  67. <version>1.5.0.Final</version>
  68. </extension>
  69. </extensions>
  70. <plugins>
  71. <plugin>
  72. <groupId>org.xolstice.maven.plugins</groupId>
  73. <artifactId>protobuf-maven-plugin</artifactId>
  74. <version>0.5.1</version>
  75. <configuration>
  76. <protocArtifact>com.google.protobuf:protoc:3.5.1-1:exe:${os.detected.classifier}</protocArtifact>
  77. <pluginId>grpc-java</pluginId>
  78. <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}
  79. </pluginArtifact>
  80. </configuration>
  81. <executions>
  82. <execution>
  83. <goals>
  84. <goal>test-compile</goal>
  85. <goal>test-compile-custom</goal>
  86. </goals>
  87. </execution>
  88. </executions>
  89. </plugin>
  90. </plugins>
  91. </build>
  92. </project>