blob: 181c205ff2fb98c30d06186a0587f4173076af12 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>statefun-e2e-tests</artifactId>
<groupId>org.apache.flink</groupId>
<version>3.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>statefun-smoke-e2e</artifactId>
<properties>
<commons-math3.version>3.5</commons-math3.version>
<additional-sources.dir>target/additional-sources</additional-sources.dir>
</properties>
<dependencies>
<!-- Stateful Functions -->
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>statefun-sdk-embedded</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>statefun-sdk-protos</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>statefun-flink-io</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>statefun-flink-common</artifactId>
<version>${project.version}</version>
</dependency>
<!-- smoke logic -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-math3</artifactId>
<version>${commons-math3.version}</version>
</dependency>
<!-- Protobuf -->
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>${protobuf.version}</version>
</dependency>
<!-- streaming runtime -->
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-java_${scala.binary.version}</artifactId>
<version>${flink.version}</version>
<exclusions>
<!--
This artifact transitively depends on different versions of slf4j-api.
To see the complete list, comment this exclusion run mvn enforcer:enforce.
-->
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-core</artifactId>
<version>${flink.version}</version>
<exclusions>
<!--
This artifact transitively depends on different versions of slf4j-api.
To see the complete list, comment this exclusion run mvn enforcer:enforce.
-->
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- logging -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.15</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
<!-- End-to-end test common -->
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>statefun-e2e-tests-common</artifactId>
<version>${project.version}</version>
<scope>test</scope>
<exclusions>
<!-- conflicts with flink-core -->
<exclusion>
<groupId>com.kohlschutter.junixsocket</groupId>
<artifactId>junixsocket-native-common</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>statefun-flink-harness</artifactId>
<version>${project.version}</version>
<scope>test</scope>
<exclusions>
<!-- conflicts with testcontainers -->
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<build>
<plugins>
<!--
The following plugin is executed in the generated-sources phase,
and is responsible to extract the additional *.proto files located
at statefun-sdk-protos.jar.
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack</id>
<phase>generate-sources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.apache.flink</groupId>
<artifactId>statefun-sdk-protos</artifactId>
<version>${project.version}</version>
<type>jar</type>
<outputDirectory>${additional-sources.dir}</outputDirectory>
<includes>sdk/*.proto</includes>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<!--
The following plugin invokes protoc to generate Java classes out of the *.proto
definitions located at: (1) src/main/protobuf (2) ${additional-sources.dir}.
-->
<plugin>
<groupId>com.github.os72</groupId>
<artifactId>protoc-jar-maven-plugin</artifactId>
<version>${protoc-jar-maven-plugin.version}</version>
<executions>
<execution>
<id>generate-protobuf-sources</id>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<includeStdTypes>true</includeStdTypes>
<protocVersion>${protobuf.version}</protocVersion>
<cleanOutputFolder>true</cleanOutputFolder>
<inputDirectories>
<inputDirectory>src/main/protobuf</inputDirectory>
<inputDirectory>${additional-sources.dir}</inputDirectory>
</inputDirectories>
<outputDirectory>${basedir}/target/generated-sources/protoc-jar</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>