Skip to content

Commit

Permalink
[FLINK-27810][es][tests] Reduce number of bundled dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
zentol committed Jun 7, 2022
1 parent 1bec4e2 commit a3a3299
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,13 @@ under the License.
<groupId>org.apache.flink</groupId>
<artifactId>flink-end-to-end-tests-common-elasticsearch</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>${log4j.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
Expand Down Expand Up @@ -115,6 +117,15 @@ under the License.
</executions>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.apache.flink</groupId>
<artifactId>flink-end-to-end-tests-common-elasticsearch</artifactId>
<version>${project.version}</version>
<destFileName>flink-connector-elasticsearch-test-utils.jar</destFileName>
<type>jar</type>
<outputDirectory>${project.build.directory}/dependencies
</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.apache.flink</groupId>
<artifactId>flink-connector-test-utils</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,10 @@ String getElasticsearchContainerName() {
TestUtils.getResource("dependencies/flink-connector-test-utils.jar")
.toAbsolutePath()
.toUri()
.toURL(),
TestUtils.getResource(
"dependencies/flink-connector-elasticsearch-test-utils.jar")
.toAbsolutePath()
.toUri()
.toURL()));
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,13 @@ under the License.
<groupId>org.apache.flink</groupId>
<artifactId>flink-end-to-end-tests-common-elasticsearch</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>${log4j.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
Expand Down Expand Up @@ -116,6 +118,15 @@ under the License.
</executions>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.apache.flink</groupId>
<artifactId>flink-end-to-end-tests-common-elasticsearch</artifactId>
<version>${project.version}</version>
<destFileName>flink-connector-elasticsearch-test-utils.jar</destFileName>
<type>jar</type>
<outputDirectory>${project.build.directory}/dependencies
</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.apache.flink</groupId>
<artifactId>flink-connector-test-utils</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,10 @@ String getElasticsearchContainerName() {
TestUtils.getResource("dependencies/flink-connector-test-utils.jar")
.toAbsolutePath()
.toUri()
.toURL(),
TestUtils.getResource(
"dependencies/flink-connector-elasticsearch-test-utils.jar")
.toAbsolutePath()
.toUri()
.toURL()));
}

0 comments on commit a3a3299

Please sign in to comment.