|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | +Licensed to the Apache Software Foundation (ASF) under one |
| 4 | +or more contributor license agreements. See the NOTICE file |
| 5 | +distributed with this work for additional information |
| 6 | +regarding copyright ownership. The ASF licenses this file |
| 7 | +to you under the Apache License, Version 2.0 (the |
| 8 | +"License"); you may not use this file except in compliance |
| 9 | +with the License. You may obtain a copy of the License at |
| 10 | +
|
| 11 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | +
|
| 13 | +Unless required by applicable law or agreed to in writing, |
| 14 | +software distributed under the License is distributed on an |
| 15 | +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 16 | +KIND, either express or implied. See the License for the |
| 17 | +specific language governing permissions and limitations |
| 18 | +under the License. |
| 19 | +--> |
| 20 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 21 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 22 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 23 | + |
| 24 | + <modelVersion>4.0.0</modelVersion> |
| 25 | + |
| 26 | + <parent> |
| 27 | + <groupId>org.apache.flink</groupId> |
| 28 | + <artifactId>flink-connector-aws-parent</artifactId> |
| 29 | + <version>5.1-SNAPSHOT</version> |
| 30 | + </parent> |
| 31 | + |
| 32 | + <artifactId>flink-connector-cloudwatch</artifactId> |
| 33 | + <name>Flink : Connectors : AWS : Amazon Cloudwatch</name> |
| 34 | + <packaging>jar</packaging> |
| 35 | + |
| 36 | + <properties> |
| 37 | + <aws.sdkv2.version>2.31.18</aws.sdkv2.version> |
| 38 | + <flink.version>1.19.0</flink.version> |
| 39 | + </properties> |
| 40 | + |
| 41 | + <dependencies> |
| 42 | + <dependency> |
| 43 | + <groupId>org.apache.flink</groupId> |
| 44 | + <artifactId>flink-streaming-java</artifactId> |
| 45 | + <version>${flink.version}</version> |
| 46 | + <scope>provided</scope> |
| 47 | + </dependency> |
| 48 | + |
| 49 | + <dependency> |
| 50 | + <groupId>org.apache.flink</groupId> |
| 51 | + <artifactId>flink-connector-aws-base</artifactId> |
| 52 | + <version>${project.version}</version> |
| 53 | + </dependency> |
| 54 | + |
| 55 | + <dependency> |
| 56 | + <groupId>software.amazon.awssdk</groupId> |
| 57 | + <artifactId>cloudwatch</artifactId> |
| 58 | + </dependency> |
| 59 | + |
| 60 | + <dependency> |
| 61 | + <groupId>software.amazon.awssdk</groupId> |
| 62 | + <artifactId>netty-nio-client</artifactId> |
| 63 | + </dependency> |
| 64 | + |
| 65 | + <!-- Test dependencies --> |
| 66 | + <dependency> |
| 67 | + <groupId>org.apache.flink</groupId> |
| 68 | + <artifactId>flink-test-utils</artifactId> |
| 69 | + <version>${flink.version}</version> |
| 70 | + <scope>test</scope> |
| 71 | + </dependency> |
| 72 | + <dependency> |
| 73 | + <groupId>org.apache.flink</groupId> |
| 74 | + <artifactId>flink-connector-test-utils</artifactId> |
| 75 | + <version>${flink.version}</version> |
| 76 | + <scope>test</scope> |
| 77 | + </dependency> |
| 78 | + |
| 79 | + <dependency> |
| 80 | + <groupId>org.apache.flink</groupId> |
| 81 | + <artifactId>flink-connector-aws-base</artifactId> |
| 82 | + <version>${project.version}</version> |
| 83 | + <type>test-jar</type> |
| 84 | + <scope>test</scope> |
| 85 | + </dependency> |
| 86 | + |
| 87 | + <dependency> |
| 88 | + <groupId>org.apache.flink</groupId> |
| 89 | + <artifactId>flink-connector-base</artifactId> |
| 90 | + <version>${flink.version}</version> |
| 91 | + <type>test-jar</type> |
| 92 | + <scope>test</scope> |
| 93 | + </dependency> |
| 94 | + |
| 95 | + <dependency> |
| 96 | + <groupId>org.testcontainers</groupId> |
| 97 | + <artifactId>testcontainers</artifactId> |
| 98 | + <scope>test</scope> |
| 99 | + </dependency> |
| 100 | + |
| 101 | + <!-- Table API dependencies--> |
| 102 | + <dependency> |
| 103 | + <groupId>org.apache.flink</groupId> |
| 104 | + <artifactId>flink-table-common</artifactId> |
| 105 | + <version>${flink.version}</version> |
| 106 | + <scope>provided</scope> |
| 107 | + </dependency> |
| 108 | + |
| 109 | + <dependency> |
| 110 | + <groupId>org.apache.flink</groupId> |
| 111 | + <artifactId>flink-table-runtime</artifactId> |
| 112 | + <version>${flink.version}</version> |
| 113 | + <scope>test</scope> |
| 114 | + </dependency> |
| 115 | + |
| 116 | + <dependency> |
| 117 | + <groupId>org.apache.flink</groupId> |
| 118 | + <artifactId>flink-table-common</artifactId> |
| 119 | + <version>${flink.version}</version> |
| 120 | + <scope>test</scope> |
| 121 | + <type>test-jar</type> |
| 122 | + </dependency> |
| 123 | + |
| 124 | + <!-- ArchUnit test dependencies --> |
| 125 | + |
| 126 | + <dependency> |
| 127 | + <groupId>org.apache.flink</groupId> |
| 128 | + <artifactId>flink-architecture-tests-test</artifactId> |
| 129 | + <scope>test</scope> |
| 130 | + </dependency> |
| 131 | + |
| 132 | + <dependency> |
| 133 | + <groupId>software.amazon.awssdk</groupId> |
| 134 | + <artifactId>s3</artifactId> |
| 135 | + <scope>test</scope> |
| 136 | + </dependency> |
| 137 | + |
| 138 | + <dependency> |
| 139 | + <groupId>software.amazon.awssdk</groupId> |
| 140 | + <artifactId>bom</artifactId> |
| 141 | + <version>${aws.sdkv2.version}</version> |
| 142 | + <type>pom</type> |
| 143 | + <scope>import</scope> |
| 144 | + </dependency> |
| 145 | + </dependencies> |
| 146 | + |
| 147 | + <dependencyManagement> |
| 148 | + <dependencies> |
| 149 | + |
| 150 | + <!-- Overridden aws-sdk dependency to older version to temporarily fix 'not able to create sqs localstack error with newer version'--> |
| 151 | + <dependency> |
| 152 | + <groupId>software.amazon.awssdk</groupId> |
| 153 | + <artifactId>bom</artifactId> |
| 154 | + <version>${aws.sdkv2.version}</version> |
| 155 | + <type>pom</type> |
| 156 | + <scope>import</scope> |
| 157 | + </dependency> |
| 158 | + </dependencies> |
| 159 | + </dependencyManagement> |
| 160 | + |
| 161 | + <build> |
| 162 | + <plugins> |
| 163 | + <plugin> |
| 164 | + <groupId>org.apache.maven.plugins</groupId> |
| 165 | + <artifactId>maven-jar-plugin</artifactId> |
| 166 | + <executions> |
| 167 | + <execution> |
| 168 | + <goals> |
| 169 | + <goal>test-jar</goal> |
| 170 | + </goals> |
| 171 | + </execution> |
| 172 | + </executions> |
| 173 | + </plugin> |
| 174 | + |
| 175 | + <plugin> |
| 176 | + <groupId>org.apache.maven.plugins</groupId> |
| 177 | + <artifactId>maven-shade-plugin</artifactId> |
| 178 | + <executions> |
| 179 | + <execution> |
| 180 | + <id>shade-flink</id> |
| 181 | + <phase>package</phase> |
| 182 | + <goals> |
| 183 | + <goal>shade</goal> |
| 184 | + </goals> |
| 185 | + <configuration> |
| 186 | + <artifactSet combine.children="append"> |
| 187 | + <includes> |
| 188 | + <include>org.apache.flink:flink-connector-aws-base:*</include> |
| 189 | + <include>com.amazonaws:*</include> |
| 190 | + <include>software.amazon.awssdk:*</include> |
| 191 | + <include>org.reactivestreams:*</include> |
| 192 | + <include>io.netty:*</include> |
| 193 | + <include>com.typesafe.netty:*</include> |
| 194 | + </includes> |
| 195 | + </artifactSet> |
| 196 | + <relocations combine.children="override"> |
| 197 | + <!-- Do not relocate guava because it is exposed in the Kinesis API (KinesisProducer#addUserRecord). |
| 198 | + Users may be using other affected API's, so relocations may break user-code --> |
| 199 | + <relocation> |
| 200 | + <pattern>org.apache.flink.connector.aws</pattern> |
| 201 | + <shadedPattern> |
| 202 | + org.apache.flink.cloudwatch.shaded.org.apache.flink.connector.aws |
| 203 | + </shadedPattern> |
| 204 | + </relocation> |
| 205 | + <relocation> |
| 206 | + <pattern>com.amazonaws</pattern> |
| 207 | + <shadedPattern>org.apache.flink.cloudwatch.shaded.com.amazonaws</shadedPattern> |
| 208 | + </relocation> |
| 209 | + <relocation> |
| 210 | + <pattern>io.netty</pattern> |
| 211 | + <shadedPattern>org.apache.flink.cloudwatch.shaded.io.netty</shadedPattern> |
| 212 | + </relocation> |
| 213 | + <relocation> |
| 214 | + <pattern>com.typesafe.netty</pattern> |
| 215 | + <shadedPattern>org.apache.flink.cloudwatch.shaded.com.typesafe.netty</shadedPattern> |
| 216 | + </relocation> |
| 217 | + <relocation> |
| 218 | + <pattern>software.amazon</pattern> |
| 219 | + <shadedPattern>org.apache.flink.cloudwatch.shaded.software.amazon</shadedPattern> |
| 220 | + </relocation> |
| 221 | + <relocation> |
| 222 | + <pattern>org.reactivestreams</pattern> |
| 223 | + <shadedPattern>org.apache.flink.cloudwatch.shaded.org.reactivestreams</shadedPattern> |
| 224 | + </relocation> |
| 225 | + </relocations> |
| 226 | + <filters> |
| 227 | + <filter> |
| 228 | + <artifact>*:*</artifact> |
| 229 | + <excludes> |
| 230 | + <exclude>.gitkeep</exclude> |
| 231 | + </excludes> |
| 232 | + </filter> |
| 233 | + <filter> |
| 234 | + <artifact>org.apache.flink:flink-connector-aws-base:*</artifact> |
| 235 | + <excludes> |
| 236 | + <exclude>profile</exclude> |
| 237 | + </excludes> |
| 238 | + </filter> |
| 239 | + </filters> |
| 240 | + </configuration> |
| 241 | + </execution> |
| 242 | + </executions> |
| 243 | + </plugin> |
| 244 | + </plugins> |
| 245 | + </build> |
| 246 | +</project> |
0 commit comments