Skip to content

Commit

Permalink
[FLINK-5092] Add maven profile with code coverage report generation
Browse files Browse the repository at this point in the history
- add module for tests coverage report aggregating
- add option for disabling replacing original jar with shaded one
  • Loading branch information
Boris Osipov committed Dec 14, 2016
1 parent 49adbe8 commit 5fc5d95
Show file tree
Hide file tree
Showing 19 changed files with 456 additions and 8 deletions.
1 change: 1 addition & 0 deletions flink-connectors/flink-connector-cassandra/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ under the License.
<goal>shade</goal>
</goals>
<configuration combine.self="override">
<shadedArtifactAttached>${shade.shadedArtifactAttached}</shadedArtifactAttached>
<dependencyReducedPomLocation>${project.basedir}/target/dependency-reduced-pom.xml</dependencyReducedPomLocation>
<artifactSet>
<includes>
Expand Down
1 change: 1 addition & 0 deletions flink-connectors/flink-connector-flume/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ under the License.
<execution>
<id>shade-flink</id>
<configuration>
<shadedArtifactAttached>${shade.shadedArtifactAttached}</shadedArtifactAttached>
<artifactSet>
<includes combine.children="append">
<!-- We include all dependencies that transitively depend on guava -->
Expand Down
1 change: 1 addition & 0 deletions flink-connectors/flink-connector-kafka-0.8/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ under the License.
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>${shade.shadedArtifactAttached}</shadedArtifactAttached>
<artifactSet>
<includes combine.children="append">
<include>org.apache.flink:flink-shaded-curator-recipes</include>
Expand Down
1 change: 1 addition & 0 deletions flink-connectors/flink-connector-kinesis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ under the License.
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>${shade.shadedArtifactAttached}</shadedArtifactAttached>
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
<artifactSet combine.children="append">
<includes>
Expand Down
1 change: 1 addition & 0 deletions flink-connectors/flink-connector-twitter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ under the License.
<execution>
<id>shade-flink</id>
<configuration>
<shadedArtifactAttached>${shade.shadedArtifactAttached}</shadedArtifactAttached>
<artifactSet>
<includes combine.children="append">
<!-- We include all dependencies that transitively depend on guava -->
Expand Down
13 changes: 12 additions & 1 deletion flink-contrib/flink-storm-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ under the License.
</goals>
<configuration>
<finalName>WordCount-StormTopology</finalName>

<artifactSet>
<includes>
<include>org.apache.storm:storm-core</include>
Expand Down Expand Up @@ -364,6 +363,18 @@ under the License.
</transformers>
</configuration>
</execution>
<execution>
<id>shade-flink</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadeTestJar>false</shadeTestJar>
<shadedArtifactAttached>false</shadedArtifactAttached>
<createDependencyReducedPom>false</createDependencyReducedPom>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
Expand Down
2 changes: 1 addition & 1 deletion flink-dist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ under the License.
</goals>
<configuration combine.self="override">
<createDependencyReducedPom>false</createDependencyReducedPom>
<shadedArtifactAttached>false</shadedArtifactAttached>
<shadedArtifactAttached>${shade.shadedArtifactAttached}</shadedArtifactAttached>
<finalName>${project.artifactId}-${project.version}</finalName>
<filters>
<!-- Globally exclude log4j.properties from our JAR files. -->
Expand Down
14 changes: 12 additions & 2 deletions flink-examples/flink-examples-streaming/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,6 @@ under the License.
</goals>
<configuration>
<shadeTestJar>false</shadeTestJar>
<shadedArtifactAttached>false</shadedArtifactAttached>
<createDependencyReducedPom>false</createDependencyReducedPom>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
Expand Down Expand Up @@ -516,7 +515,6 @@ under the License.
</goals>
<configuration>
<shadeTestJar>false</shadeTestJar>
<shadedArtifactAttached>false</shadedArtifactAttached>
<createDependencyReducedPom>false</createDependencyReducedPom>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
Expand All @@ -538,6 +536,18 @@ under the License.
</filters>
</configuration>
</execution>
<execution>
<id>shade-flink</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadeTestJar>false</shadeTestJar>
<shadedArtifactAttached>false</shadedArtifactAttached>
<createDependencyReducedPom>false</createDependencyReducedPom>
</configuration>
</execution>
</executions>
</plugin>

Expand Down
1 change: 1 addition & 0 deletions flink-libraries/flink-table/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ under the License.
<execution>
<id>shade-flink</id>
<configuration>
<shadedArtifactAttached>${shade.shadedArtifactAttached}</shadedArtifactAttached>
<filters>
<filter>
<excludes>
Expand Down
1 change: 1 addition & 0 deletions flink-mesos/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ under the License.
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>${shade.shadedArtifactAttached}</shadedArtifactAttached>
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
<artifactSet>
<includes combine.children="append">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ under the License.
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>${shade.shadedArtifactAttached}</shadedArtifactAttached>
<artifactSet>
<excludes combine.self="override"></excludes>
</artifactSet>
Expand Down
2 changes: 1 addition & 1 deletion flink-runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ under the License.
<goal>shade</goal>
</goals>
<configuration>

<shadedArtifactAttached>${shade.shadedArtifactAttached}</shadedArtifactAttached>
<artifactSet>
<includes combine.children="append">
<include>org.apache.flink:flink-shaded-curator-recipes</include>
Expand Down
1 change: 1 addition & 0 deletions flink-shaded-curator/flink-shaded-curator-recipes/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ under the License.
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>${shade.shadedArtifactAttached}</shadedArtifactAttached>
<artifactSet combine.self="override">
<includes>
<include>com.google.guava:*</include>
Expand Down
1 change: 1 addition & 0 deletions flink-shaded-curator/flink-shaded-curator-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>${shade.shadedArtifactAttached}</shadedArtifactAttached>
<artifactSet combine.self="override">
<excludes>
<exclude>log4j</exclude>
Expand Down
2 changes: 1 addition & 1 deletion flink-shaded-hadoop/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ under the License.
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>false</shadedArtifactAttached>
<shadedArtifactAttached>${shade.shadedArtifactAttached}</shadedArtifactAttached>
<createDependencyReducedPom>true</createDependencyReducedPom>
<dependencyReducedPomLocation>${project.basedir}/target/dependency-reduced-pom.xml</dependencyReducedPomLocation>
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
Expand Down

0 comments on commit 5fc5d95

Please sign in to comment.