pom.xml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright 1999-2019 Seata.io Group.
  4. ~
  5. ~ Licensed under the Apache License, Version 2.0 (the "License");
  6. ~ you may not use this file except in compliance with the License.
  7. ~ You may obtain a copy of the License at
  8. ~
  9. ~ http://www.apache.org/licenses/LICENSE-2.0
  10. ~
  11. ~ Unless required by applicable law or agreed to in writing, software
  12. ~ distributed under the License is distributed on an "AS IS" BASIS,
  13. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ~ See the License for the specific language governing permissions and
  15. ~ limitations under the License.
  16. -->
  17. <project xmlns="http://maven.apache.org/POM/4.0.0"
  18. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  19. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  20. <parent>
  21. <artifactId>seata-parent</artifactId>
  22. <groupId>io.seata</groupId>
  23. <version>${revision}</version>
  24. <relativePath>../../pom.xml</relativePath>
  25. </parent>
  26. <modelVersion>4.0.0</modelVersion>
  27. <artifactId>seata-grpc</artifactId>
  28. <packaging>jar</packaging>
  29. <name>seata-grpc ${project.version}</name>
  30. <description>gRPC integration for Seata built with Maven</description>
  31. <dependencies>
  32. <dependency>
  33. <groupId>${project.groupId}</groupId>
  34. <artifactId>seata-tm</artifactId>
  35. <version>${project.version}</version>
  36. </dependency>
  37. <dependency>
  38. <groupId>io.grpc</groupId>
  39. <artifactId>grpc-netty</artifactId>
  40. <exclusions>
  41. <exclusion>
  42. <groupId>io.netty</groupId>
  43. <artifactId>*</artifactId>
  44. </exclusion>
  45. </exclusions>
  46. <scope>provided</scope>
  47. </dependency>
  48. <dependency>
  49. <groupId>io.grpc</groupId>
  50. <artifactId>grpc-protobuf</artifactId>
  51. <scope>provided</scope>
  52. </dependency>
  53. <dependency>
  54. <groupId>io.grpc</groupId>
  55. <artifactId>grpc-stub</artifactId>
  56. <scope>provided</scope>
  57. </dependency>
  58. <dependency>
  59. <groupId>io.grpc</groupId>
  60. <artifactId>grpc-testing</artifactId>
  61. <scope>test</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>javax.annotation</groupId>
  65. <artifactId>javax.annotation-api</artifactId>
  66. <scope>provided</scope>
  67. </dependency>
  68. </dependencies>
  69. <build>
  70. <plugins>
  71. <plugin>
  72. <groupId>org.xolstice.maven.plugins</groupId>
  73. <artifactId>protobuf-maven-plugin</artifactId>
  74. <configuration>
  75. <protocArtifact>com.google.protobuf:protoc:3.11.0:exe:${os.detected.classifier}</protocArtifact>
  76. <pluginId>grpc-java</pluginId>
  77. <pluginArtifact>io.grpc:protoc-gen-grpc-java:1.27.1:exe:${os.detected.classifier}</pluginArtifact>
  78. </configuration>
  79. <executions>
  80. <execution>
  81. <goals>
  82. <goal>test-compile</goal>
  83. <goal>test-compile-custom</goal>
  84. </goals>
  85. </execution>
  86. </executions>
  87. </plugin>
  88. </plugins>
  89. </build>
  90. </project>