Skip to content

Commit

Permalink
[FLINK-25039][build] Disable shading of test jar by default
Browse files Browse the repository at this point in the history
  • Loading branch information
zentol authored Nov 25, 2021
1 parent 249683b commit 2c5ccd1
Show file tree
Hide file tree
Showing 26 changed files with 14 additions and 31 deletions.
1 change: 0 additions & 1 deletion flink-connectors/flink-connector-elasticsearch5/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ under the License.
<goal>shade</goal>
</goals>
<configuration>
<shadeTestJar>false</shadeTestJar>
<artifactSet>
<includes>
<include>*:*</include>
Expand Down
8 changes: 0 additions & 8 deletions flink-connectors/flink-connector-files/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,6 @@ under the License.
<type>test-jar</type>
</dependency>

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-connector-base</artifactId>
<version>${project.version}</version>
<scope>test</scope>
<type>test-jar</type>
</dependency>

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-test-utils</artifactId>
Expand Down
1 change: 0 additions & 1 deletion flink-connectors/flink-connector-hive/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,6 @@ under the License.
<goal>shade</goal>
</goals>
<configuration>
<shadeTestJar>false</shadeTestJar>
<artifactSet>
<includes combine.children="append">
<include>org.apache.flink:flink-hadoop-fs</include>
Expand Down
2 changes: 2 additions & 0 deletions flink-connectors/flink-connector-kinesis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ under the License.
<goal>shade</goal>
</goals>
<configuration>
<!-- required for the Kinesis e2e test -->
<shadeTestJar>true</shadeTestJar>
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
<artifactSet combine.children="append">
<includes>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ under the License.
<goal>shade</goal>
</goals>
<configuration>
<shadeTestJar>false</shadeTestJar>
<artifactSet>
<includes>
<include>*:*</include>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ under the License.
<goal>shade</goal>
</goals>
<configuration>
<shadeTestJar>false</shadeTestJar>
<artifactSet>
<includes>
<include>*:*</include>
Expand Down
1 change: 0 additions & 1 deletion flink-connectors/flink-sql-connector-hbase-1.4/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ under the License.
<file>hbase-default.xml</file>
</transformer>
</transformers>
<shadeTestJar>false</shadeTestJar>
<artifactSet>
<includes>
<include>org.apache.flink:flink-connector-hbase-base</include>
Expand Down
1 change: 0 additions & 1 deletion flink-connectors/flink-sql-connector-hbase-2.2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ under the License.
<file>hbase-default.xml</file>
</transformer>
</transformers>
<shadeTestJar>false</shadeTestJar>
<artifactSet>
<includes>
<include>org.apache.flink:flink-connector-hbase-base</include>
Expand Down
1 change: 0 additions & 1 deletion flink-connectors/flink-sql-connector-kafka/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ under the License.
<goal>shade</goal>
</goals>
<configuration>
<shadeTestJar>false</shadeTestJar>
<artifactSet>
<includes>
<include>org.apache.kafka:*</include>
Expand Down
1 change: 0 additions & 1 deletion flink-connectors/flink-sql-connector-kinesis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ under the License.
<goal>shade</goal>
</goals>
<configuration>
<shadeTestJar>false</shadeTestJar>
<artifactSet>
<includes>
<include>org.apache.flink:flink-connector-kinesis</include>
Expand Down
1 change: 0 additions & 1 deletion flink-connectors/flink-sql-connector-rabbitmq/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ under the License.
<goal>shade</goal>
</goals>
<configuration>
<shadeTestJar>false</shadeTestJar>
<artifactSet>
<includes>
<include>com.rabbitmq:amqp-client</include>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ under the License.
<goal>shade</goal>
</goals>
<configuration>
<shadeTestJar>false</shadeTestJar>
<shadedArtifactAttached>false</shadedArtifactAttached>
<createDependencyReducedPom>false</createDependencyReducedPom>
<transformers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ under the License.
<goal>shade</goal>
</goals>
<configuration>
<shadeTestJar>false</shadeTestJar>
<shadedArtifactAttached>false</shadedArtifactAttached>
<createDependencyReducedPom>false</createDependencyReducedPom>
<transformers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ under the License.
<goal>shade</goal>
</goals>
<configuration>
<shadeTestJar>false</shadeTestJar>
<shadedArtifactAttached>false</shadedArtifactAttached>
<createDependencyReducedPom>false</createDependencyReducedPom>
<transformers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ under the License.
<goal>shade</goal>
</goals>
<configuration>
<shadeTestJar>false</shadeTestJar>
<shadedArtifactAttached>false</shadedArtifactAttached>
<createDependencyReducedPom>false</createDependencyReducedPom>
<transformers>
Expand Down
1 change: 0 additions & 1 deletion flink-filesystems/flink-fs-hadoop-shaded/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ under the License.
<goal>shade</goal>
</goals>
<configuration>
<shadeTestJar>false</shadeTestJar>
<artifactSet>
<includes>
<include>*:*</include>
Expand Down
1 change: 0 additions & 1 deletion flink-filesystems/flink-oss-fs-hadoop/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ under the License.
<goal>shade</goal>
</goals>
<configuration>
<shadeTestJar>false</shadeTestJar>
<artifactSet>
<includes>
<include>*:*</include>
Expand Down
1 change: 0 additions & 1 deletion flink-filesystems/flink-s3-fs-hadoop/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ under the License.
<goal>shade</goal>
</goals>
<configuration>
<shadeTestJar>false</shadeTestJar>
<artifactSet>
<includes>
<include>*:*</include>
Expand Down
1 change: 0 additions & 1 deletion flink-filesystems/flink-s3-fs-presto/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,6 @@ under the License.
<goal>shade</goal>
</goals>
<configuration>
<shadeTestJar>false</shadeTestJar>
<artifactSet>
<includes>
<include>*:*</include>
Expand Down
1 change: 0 additions & 1 deletion flink-formats/flink-sql-avro-confluent-registry/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ under the License.
<goal>shade</goal>
</goals>
<configuration>
<shadeTestJar>false</shadeTestJar>
<artifactSet>
<includes>
<include>io.confluent:*</include>
Expand Down
1 change: 0 additions & 1 deletion flink-formats/flink-sql-avro/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ under the License.
<goal>shade</goal>
</goals>
<configuration>
<shadeTestJar>false</shadeTestJar>
<artifactSet>
<includes>
<include>org.apache.flink:flink-avro</include>
Expand Down
1 change: 0 additions & 1 deletion flink-python/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,6 @@ under the License.
<goal>shade</goal>
</goals>
<configuration>
<shadeTestJar>false</shadeTestJar>
<artifactSet>
<includes combine.children="append">
<include>net.razorvine:*</include>
Expand Down
11 changes: 11 additions & 0 deletions flink-rpc/flink-rpc-akka-loader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,17 @@ under the License.

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
Expand Down
1 change: 0 additions & 1 deletion flink-table/flink-table-code-splitter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ under the License.
<execution>
<id>shade-flink</id>
<configuration>
<shadeTestJar>false</shadeTestJar>
<artifactSet>
<includes combine.children="append">
<include>org.antlr:antlr4-runtime</include>
Expand Down
1 change: 0 additions & 1 deletion flink-table/flink-table-planner/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@ under the License.
<execution>
<id>shade-flink</id>
<configuration>
<shadeTestJar>false</shadeTestJar>
<filters>
<filter>
<artifact>*:*</artifact>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1759,7 +1759,7 @@ under the License.
<goal>shade</goal>
</goals>
<configuration>
<shadeTestJar>true</shadeTestJar>
<shadeTestJar>false</shadeTestJar>
<shadedArtifactAttached>false</shadedArtifactAttached>
<createDependencyReducedPom>true</createDependencyReducedPom>
<dependencyReducedPomLocation>${project.basedir}/target/dependency-reduced-pom.xml</dependencyReducedPomLocation>
Expand Down

0 comments on commit 2c5ccd1

Please sign in to comment.