|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + ~ Copyright 2021-Present The CloudEvents Authors |
| 4 | + ~ <p> |
| 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 | + ~ <p> |
| 9 | + ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | + ~ <p> |
| 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 | + --> |
| 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/maven-v4_0_0.xsd"> |
| 21 | + <modelVersion>4.0.0</modelVersion> |
| 22 | + |
| 23 | + <parent> |
| 24 | + <groupId>io.cloudevents</groupId> |
| 25 | + <artifactId>cloudevents-parent</artifactId> |
| 26 | + <version>2.1.0-SNAPSHOT</version> |
| 27 | + <relativePath>../../pom.xml</relativePath> |
| 28 | + </parent> |
| 29 | + |
| 30 | + <artifactId>cloudevents-protobuf</artifactId> |
| 31 | + <name>CloudEvents - Protocol Buffers</name> |
| 32 | + <packaging>jar</packaging> |
| 33 | + |
| 34 | + <properties> |
| 35 | + <protobuf.version>3.15.0</protobuf.version> |
| 36 | + <module-name>io.cloudevents.formats.protobuf</module-name> |
| 37 | + </properties> |
| 38 | + |
| 39 | + <build> |
| 40 | + <extensions> |
| 41 | + <extension> |
| 42 | + <groupId>kr.motd.maven</groupId> |
| 43 | + <artifactId>os-maven-plugin</artifactId> |
| 44 | + <version>1.6.0</version> |
| 45 | + </extension> |
| 46 | + </extensions> |
| 47 | + <plugins> |
| 48 | + <plugin> |
| 49 | + <groupId>org.xolstice.maven.plugins</groupId> |
| 50 | + <artifactId>protobuf-maven-plugin</artifactId> |
| 51 | + <version>0.6.1</version> |
| 52 | + <executions> |
| 53 | + <execution> |
| 54 | + <goals> |
| 55 | + <goal>compile</goal> |
| 56 | + <goal>test-compile</goal> |
| 57 | + </goals> |
| 58 | + </execution> |
| 59 | + </executions> |
| 60 | + <configuration> |
| 61 | + <protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}</protocArtifact> |
| 62 | + </configuration> |
| 63 | + </plugin> |
| 64 | + </plugins> |
| 65 | + </build> |
| 66 | + |
| 67 | + <dependencyManagement> |
| 68 | + <dependencies> |
| 69 | + <dependency> |
| 70 | + <groupId>com.google.protobuf</groupId> |
| 71 | + <artifactId>protobuf-bom</artifactId> |
| 72 | + <version>${protobuf.version}</version> |
| 73 | + <scope>import</scope> |
| 74 | + <type>pom</type> |
| 75 | + </dependency> |
| 76 | + </dependencies> |
| 77 | + </dependencyManagement> |
| 78 | + |
| 79 | + <dependencies> |
| 80 | + <dependency> |
| 81 | + <groupId>io.cloudevents</groupId> |
| 82 | + <artifactId>cloudevents-core</artifactId> |
| 83 | + <version>${project.version}</version> |
| 84 | + </dependency> |
| 85 | + |
| 86 | + <dependency> |
| 87 | + <groupId>com.google.protobuf</groupId> |
| 88 | + <artifactId>protobuf-java</artifactId> |
| 89 | + </dependency> |
| 90 | + |
| 91 | + <dependency> |
| 92 | + <groupId>com.google.protobuf</groupId> |
| 93 | + <artifactId>protobuf-java-util</artifactId> |
| 94 | + <version>${protobuf.version}</version> |
| 95 | + </dependency> |
| 96 | + |
| 97 | + <!-- Test deps --> |
| 98 | + <dependency> |
| 99 | + <groupId>org.junit.jupiter</groupId> |
| 100 | + <artifactId>junit-jupiter</artifactId> |
| 101 | + <version>${junit-jupiter.version}</version> |
| 102 | + <scope>test</scope> |
| 103 | + </dependency> |
| 104 | + |
| 105 | + <dependency> |
| 106 | + <groupId>org.assertj</groupId> |
| 107 | + <artifactId>assertj-core</artifactId> |
| 108 | + <version>${assertj-core.version}</version> |
| 109 | + <scope>test</scope> |
| 110 | + </dependency> |
| 111 | + |
| 112 | + <dependency> |
| 113 | + <groupId>com.google.truth.extensions</groupId> |
| 114 | + <artifactId>truth-proto-extension</artifactId> |
| 115 | + <version>1.1</version> |
| 116 | + <scope>test</scope> |
| 117 | + </dependency> |
| 118 | + |
| 119 | + <dependency> |
| 120 | + <groupId>io.cloudevents</groupId> |
| 121 | + <artifactId>cloudevents-core</artifactId> |
| 122 | + <classifier>tests</classifier> |
| 123 | + <type>test-jar</type> |
| 124 | + <version>${project.version}</version> |
| 125 | + <scope>test</scope> |
| 126 | + </dependency> |
| 127 | + |
| 128 | + </dependencies> |
| 129 | + |
| 130 | +</project> |
0 commit comments