<?xml version="1.0" encoding="UTF-8"?>
<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>

    <!--
        Framework-agnostic, server-side UI-automation capability SPI for Vaadin
        Flow. Holds only the abstractions that do NOT belong to any single tool
        (browserless-test, draiv, Copilot, TestBench could all consume them).

        DELIBERATELY AUTONOMOUS: this module declares no <parent> and pins its
        own dependency versions, so it can be lifted into the flow repository
        (as e.g. a flow-server package) without untangling it from the draiv
        aggregator. It is only *aggregated* by the draiv reactor for build
        convenience — it does not inherit from draiv-parent.

        It depends on nothing but flow-server (for com.vaadin.flow.component.*)
        and the JDK. No browserless-test, no Spring, no Jackson.
    -->
    <groupId>com.vaadin</groupId>
    <artifactId>flow-automation-commons</artifactId>
    <version>0.0.1-alpha1-SNAPSHOT</version>
    <packaging>jar</packaging>

    <name>Flow Automation Commons</name>
    <description>
        Framework-agnostic, server-side Vaadin Flow UI-automation primitives:
        a By/Selector component-finding model with resolver, plus the capability
        SPI for driving components. Component-free; depends only on flow-server.
    </description>

    <licenses>
        <license>
            <name>Vaadin Commercial License and Service Terms</name>
            <url>https://vaadin.com/commercial-license-and-service-terms</url>
        </license>
    </licenses>
<properties>
        <maven.compiler.release>21</maven.compiler.release>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <flow.version>25.3.0-beta3</flow.version>
    </properties>

    <dependencies>
        <!--
            Only needed to compile against com.vaadin.flow.component.Component.
            'provided' so this module never imposes a flow-server version on its
            consumers (they already bring Flow), which also keeps it trivially
            re-homeable into flow-server itself.
        -->
        <dependency>
            <groupId>com.vaadin</groupId>
            <artifactId>flow-server</artifactId>
            <version>${flow.version}</version>
            <scope>provided</scope>
        </dependency>
        <!--
            For the core Flow data API (com.vaadin.flow.data.*): HasListDataView,
            MultiSelect, ItemLabelGenerator-driven options. Like flow-server, 'provided'
            and component-free (no concrete component types), so commons stays
            re-homeable into flow-server.
        -->
        <dependency>
            <groupId>com.vaadin</groupId>
            <artifactId>flow-data</artifactId>
            <version>${flow.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter</artifactId>
            <version>6.1.0</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.assertj</groupId>
            <artifactId>assertj-core</artifactId>
            <version>3.27.7</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <!-- Sources jar for the published artifact; this module has no parent to inherit it from. -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>3.3.1</version>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals><goal>jar-no-fork</goal></goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>3.5.2</version>
            </plugin>
        </plugins>
    </build>

    <repositories>
        <repository>
            <id>vaadin-prereleases</id>
            <url>https://maven.vaadin.com/vaadin-prereleases/</url>
        </repository>
    </repositories>
</project>
