<?xml version="1.0" encoding="UTF-8"?>
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <artifactId>websocket-source</artifactId>
    <name>websocket-source</name>
    <description>websocket source apps</description>
    <packaging>jar</packaging>

    <parent>
        <groupId>org.springframework.cloud.stream.app</groupId>
        <artifactId>stream-applications-core</artifactId>
        <version>5.1.1-SNAPSHOT</version>
        <relativePath>../../stream-applications-core/pom.xml</relativePath>
    </parent>

    <dependencies>
        <dependency>
            <groupId>org.springframework.cloud.fn</groupId>
            <artifactId>spring-websocket-supplier</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-security</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-deploy-plugin</artifactId>
                <version>3.0.0</version>
                <configuration>
                    <skip>false</skip>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dataflow-apps-docs-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dataflow-apps-generator-plugin</artifactId>
                <configuration>
                    <application>
                        <name>websocket</name>
                        <type>source</type>
                        <version>${project.version}</version>
                        <configClass>AUTOCONFIGURATION</configClass>
                        <functionDefinition>websocketSupplier</functionDefinition>
                        <maven>
                            <dependencies>
                                <dependency>
                                    <groupId>org.springframework.cloud.fn</groupId>
                                    <artifactId>spring-websocket-supplier</artifactId>
                                </dependency>
                                <dependency>
                                    <groupId>org.springframework.cloud.stream.app</groupId>
                                    <artifactId>stream-applications-composite-function-support</artifactId>
                                    <version>${stream-apps-core.version}</version>
                                </dependency>
                            </dependencies>
                        </maven>
                    </application>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>
