Repository: flink Updated Branches: refs/heads/master 310f3de62 -> a3478fdfa
[FLINK-8832] [sql-client] Create a SQL Client Kafka 0.11 fat-jar This closes #5673. Project: http://git-wip-us.apache.org/repos/asf/flink/repo Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/a3478fdf Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/a3478fdf Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/a3478fdf Branch: refs/heads/master Commit: a3478fdfa0f792104123fefbd9bdf01f5029de51 Parents: 310f3de Author: Timo Walther <[email protected]> Authored: Fri Mar 2 14:48:20 2018 +0100 Committer: Timo Walther <[email protected]> Committed: Wed Mar 14 18:15:07 2018 +0100 ---------------------------------------------------------------------- .../flink-connector-kafka-0.11/pom.xml | 49 ++++++++++++++++++++ 1 file changed, 49 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flink/blob/a3478fdf/flink-connectors/flink-connector-kafka-0.11/pom.xml ---------------------------------------------------------------------- diff --git a/flink-connectors/flink-connector-kafka-0.11/pom.xml b/flink-connectors/flink-connector-kafka-0.11/pom.xml index befa336..8b40439 100644 --- a/flink-connectors/flink-connector-kafka-0.11/pom.xml +++ b/flink-connectors/flink-connector-kafka-0.11/pom.xml @@ -211,6 +211,55 @@ under the License. </dependencies> + <profiles> + <profile> + <!-- Create SQL Client uber jars for releases --> + <id>release</id> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + <configuration> + <shadedArtifactAttached>true</shadedArtifactAttached> + <shadedClassifierName>sql-jar</shadedClassifierName> + <artifactSet> + <includes combine.children="append"> + <include>org.apache.kafka:*</include> + <include>org.apache.flink:flink-connector-kafka-base_${scala.binary.version}</include> + <include>org.apache.flink:flink-connector-kafka-0.9_${scala.binary.version}</include> + <include>org.apache.flink:flink-connector-kafka-0.10_${scala.binary.version}</include> + </includes> + </artifactSet> + <filters> + <filter> + <artifact>*:*</artifact> + <excludes> + <exclude>kafka/kafka-version.properties</exclude> + </excludes> + </filter> + </filters> + <relocations> + <relocation> + <pattern>org.apache.kafka</pattern> + <shadedPattern>org.apache.flink.kafka011.shaded.org.apache.kafka</shadedPattern> + </relocation> + </relocations> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> + <build> <plugins> <plugin>
