<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright 2021 Hazelcast Inc.
  ~
  ~ Licensed under the Hazelcast Community License (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~ http://hazelcast.com/hazelcast-community-license
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <packaging>pom</packaging>

    <name>hazelcast-jet-extensions</name>
    <description>Hazelcast Jet Extensions</description>

    <artifactId>hazelcast-jet-extensions</artifactId>

    <parent>
        <artifactId>hazelcast-jet-root</artifactId>
        <groupId>com.hazelcast.jet</groupId>
        <version>4.5.2</version>
    </parent>

    <modules>
        <module>avro</module>
        <module>cdc-debezium</module>
        <module>cdc-mysql</module>
        <module>cdc-postgres</module>
        <module>csv</module>
        <module>elasticsearch/elasticsearch-5</module>
        <module>elasticsearch/elasticsearch-6</module>
        <module>elasticsearch/elasticsearch-7</module>
        <module>grpc</module>
        <module>hadoop</module>
        <module>hadoop-dist</module>
        <module>kafka</module>
        <module>kinesis</module>
        <module>protobuf</module>
        <module>python</module>
        <module>s3</module>
    </modules>

    <properties>
        <!-- needed for CheckStyle -->
        <checkstyle.headerLocation>${maven.multiModuleProjectDirectory}/checkstyle/ClassHeaderHazelcastCommunity.txt</checkstyle.headerLocation>
    </properties>

    <licenses>
        <license>
            <name>Hazelcast Community License</name>
            <url>http://hazelcast.com/hazelcast-community-license</url>
            <distribution>repo</distribution>
        </license>
    </licenses>

    <dependencies>
        <dependency>
            <groupId>com.hazelcast.jet</groupId>
            <artifactId>hazelcast-jet</artifactId>
            <version>${project.parent.version}</version>
            <scope>provided</scope>
        </dependency>

        <!-- TEST -->
        <dependency>
            <groupId>com.hazelcast.jet</groupId>
            <artifactId>hazelcast-jet-core</artifactId>
            <version>${project.parent.version}</version>
            <scope>test</scope>
            <classifier>tests</classifier>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>license-maven-plugin</artifactId>
                <version>1.19</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>add-third-party</goal>
                        </goals>
                        <phase>generate-resources</phase>
                        <configuration>
                            <outputDirectory>src/main/resources</outputDirectory>
                            <fileTemplate>${maven.multiModuleProjectDirectory}/extensions/NOTICE-extensions.ftl</fileTemplate>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

</project>
