pom.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <parent>
  4. <artifactId>pgv-java</artifactId>
  5. <groupId>io.envoyproxy.protoc-gen-validate</groupId>
  6. <version>0.6.2-SNAPSHOT</version>
  7. </parent>
  8. <modelVersion>4.0.0</modelVersion>
  9. <artifactId>pgv-java-grpc</artifactId>
  10. <name>PGV-Java gRPC Interceptors</name>
  11. <dependencies>
  12. <dependency>
  13. <groupId>com.google.api.grpc</groupId>
  14. <artifactId>proto-google-common-protos</artifactId>
  15. <version>${proto-google-common-protos.version}</version>
  16. </dependency>
  17. <dependency>
  18. <groupId>io.grpc</groupId>
  19. <artifactId>grpc-core</artifactId>
  20. <version>${grpc.version}</version>
  21. </dependency>
  22. <dependency>
  23. <groupId>io.grpc</groupId>
  24. <artifactId>grpc-testing</artifactId>
  25. <version>${grpc.version}</version>
  26. <scope>test</scope>
  27. </dependency>
  28. <dependency>
  29. <groupId>io.grpc</groupId>
  30. <artifactId>grpc-protobuf</artifactId>
  31. <version>${grpc.version}</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>io.grpc</groupId>
  35. <artifactId>grpc-stub</artifactId>
  36. <version>${grpc.version}</version>
  37. <scope>test</scope>
  38. </dependency>
  39. <dependency>
  40. <groupId>javax.annotation</groupId>
  41. <artifactId>javax.annotation-api</artifactId>
  42. <version>1.3.2</version>
  43. <scope>test</scope>
  44. </dependency>
  45. <!-- Depend on artifacts to ensure they are built before this module -->
  46. <dependency>
  47. <groupId>io.envoyproxy.protoc-gen-validate</groupId>
  48. <artifactId>protoc-gen-validate</artifactId>
  49. <version>${project.version}</version>
  50. <type>pom</type>
  51. <scope>test</scope>
  52. </dependency>
  53. <dependency>
  54. <groupId>io.envoyproxy.protoc-gen-validate</groupId>
  55. <artifactId>pgv-java-stub</artifactId>
  56. <version>${project.version}</version>
  57. </dependency>
  58. </dependencies>
  59. <build>
  60. <extensions>
  61. <extension>
  62. <groupId>kr.motd.maven</groupId>
  63. <artifactId>os-maven-plugin</artifactId>
  64. <version>1.4.1.Final</version>
  65. </extension>
  66. </extensions>
  67. <plugins>
  68. <plugin>
  69. <groupId>org.xolstice.maven.plugins</groupId>
  70. <artifactId>protobuf-maven-plugin</artifactId>
  71. <version>0.5.0</version>
  72. <configuration>
  73. <protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}</protocArtifact>
  74. <pluginId>grpc-java</pluginId>
  75. <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
  76. </configuration>
  77. <executions>
  78. <execution>
  79. <goals>
  80. <goal>test-compile</goal>
  81. <goal>test-compile-custom</goal>
  82. </goals>
  83. </execution>
  84. <execution>
  85. <id>protoc-java-pgv</id>
  86. <goals>
  87. <goal>test-compile-custom</goal>
  88. </goals>
  89. <configuration>
  90. <pluginParameter>lang=java</pluginParameter>
  91. <pluginId>java-pgv</pluginId>
  92. <pluginArtifact>io.envoyproxy.protoc-gen-validate:protoc-gen-validate:${project.version}:exe:${os.detected.classifier}</pluginArtifact>
  93. </configuration>
  94. </execution>
  95. </executions>
  96. </plugin>
  97. </plugins>
  98. </build>
  99. </project>