<?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>
    <parent>
        <groupId>com.vaadin</groupId>
        <artifactId>vaadin-parent</artifactId>
        <version>3.0.3</version>
    </parent>
    <artifactId>vaadin-flow-components</artifactId>
    <version>25.4.text-selection-SNAPSHOT</version>
    <packaging>pom</packaging>
    <name>Vaadin Flow Components Root Project</name>
    <url>https://vaadin.com/components</url>
    <modules>
        <module>flow-components-bom</module>
        <module>vaadin-renderer-flow-parent</module>
        <module>vaadin-lumo-theme-flow-parent</module>
        <module>vaadin-flow-components-shared-parent</module>
        <module>vaadin-accordion-flow-parent</module>
        <module>vaadin-avatar-flow-parent</module>
        <module>vaadin-badge-flow-parent</module>
        <module>vaadin-app-layout-flow-parent</module>
        <module>vaadin-aura-theme-flow-parent</module>
        <module>vaadin-breadcrumbs-flow-parent</module>
        <module>vaadin-button-flow-parent</module>
        <module>vaadin-card-flow-parent</module>
        <module>vaadin-checkbox-flow-parent</module>
        <module>vaadin-combo-box-flow-parent</module>
        <module>vaadin-context-menu-flow-parent</module>
        <module>vaadin-custom-field-flow-parent</module>
        <module>vaadin-dashboard-flow-parent</module>
        <module>vaadin-date-picker-flow-parent</module>
        <module>vaadin-date-time-picker-flow-parent</module>
        <module>vaadin-details-flow-parent</module>
        <module>vaadin-dialog-flow-parent</module>
        <module>vaadin-form-layout-flow-parent</module>
        <module>vaadin-grid-flow-parent</module>
        <module>vaadin-icons-flow-parent</module>
        <module>vaadin-virtual-list-flow-parent</module>
        <module>vaadin-list-box-flow-parent</module>
        <module>vaadin-login-flow-parent</module>
        <module>vaadin-markdown-flow-parent</module>
        <module>vaadin-menu-bar-flow-parent</module>
        <module>vaadin-messages-flow-parent</module>
        <module>vaadin-notification-flow-parent</module>
        <module>vaadin-ordered-layout-flow-parent</module>
        <module>vaadin-popover-flow-parent</module>
        <module>vaadin-progress-bar-flow-parent</module>
        <module>vaadin-radio-button-flow-parent</module>
        <module>vaadin-select-flow-parent</module>
        <module>vaadin-split-layout-flow-parent</module>
        <module>vaadin-tabs-flow-parent</module>
        <module>vaadin-text-field-flow-parent</module>
        <module>vaadin-time-picker-flow-parent</module>
        <module>vaadin-upload-flow-parent</module>
        <module>vaadin-board-flow-parent</module>
        <module>vaadin-charts-flow-parent</module>
        <module>vaadin-confirm-dialog-flow-parent</module>
        <module>vaadin-crud-flow-parent</module>
        <module>vaadin-grid-pro-flow-parent</module>
        <module>vaadin-map-flow-parent</module>
        <module>vaadin-rich-text-editor-flow-parent</module>
        <module>vaadin-spreadsheet-flow-parent</module>
        <module>vaadin-field-highlighter-flow-parent</module>
        <module>vaadin-side-nav-flow-parent</module>
        <module>vaadin-slider-flow-parent</module>
        <module>vaadin-master-detail-layout-flow-parent</module>
        <module>vaadin-ai-components-flow-parent</module>
    </modules>
    <scm>
        <connection>scm:https:https://github.com/vaadin/flow-components.git</connection>
        <developerConnection>scm:git:git@github.com:vaadin/flow-components.git</developerConnection>
        <url>https://github.com/vaadin/flow-components</url>
    </scm>
    <properties>
        <flow.version>25.4-SNAPSHOT</flow.version>
        <testbench.version>25.3.0</testbench.version>
        <license-checker.version>3.1.3</license-checker.version>
        <maven.compiler.release>21</maven.compiler.release>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <jetty.version>12.1.2</jetty.version>
        <jetty.http.port>8080</jetty.http.port>
        <jetty.stop.port>9999</jetty.stop.port>
        <jetty.scan>0</jetty.scan>
        <karaf-maven-plugin.version>4.4.12</karaf-maven-plugin.version>
        <maven.surefire.plugin.version>3.6.0</maven.surefire.plugin.version>
        <maven.failsafe.plugin.version>3.5.6</maven.failsafe.plugin.version>
        <maven.resources.plugin.version>3.5.0</maven.resources.plugin.version>
        <exec.maven.plugin.version>3.6.4</exec.maven.plugin.version>
        <jandex.plugin.version>3.6.0</jandex.plugin.version>
        <!-- Owned by Flow: keep jandex.format.version equal to the value in the
            Flow root POM for the flow.version in use, so that the component
            indexes use the same index format as the Flow ones. Do not change
            it on its own. -->
        <jandex.format.version>13</jandex.format.version>
        <spotless.plugin.version>3.10.3</spotless.plugin.version>
        <checkstyle.version>14.3.0</checkstyle.version>
        <maven.checkstyle.plugin.version>3.6.0</maven.checkstyle.plugin.version>
        <spotless.licence-header>${maven.multiModuleProjectDirectory}/scripts/templates/apache2-license-header.txt</spotless.licence-header>
        <spotless.npmExecutable/>
        <spotless.nodeExecutable/>
        <failsafe.forkCount>4</failsafe.forkCount>
        <com.vaadin.tests.SharedBrowser.reuseBrowser>true</com.vaadin.tests.SharedBrowser.reuseBrowser>
        <com.vaadin.testbench.Parameters.testsInParallel>1</com.vaadin.testbench.Parameters.testsInParallel>
        <failIfNoTests>false</failIfNoTests>
        <vaadin.pnpm.enable>true</vaadin.pnpm.enable>
        <osgi.bundle.license>http://www.apache.org/licenses/LICENSE-2.0</osgi.bundle.license>
        <osgi.export.package>default</osgi.export.package>
        <cvdlName/>
        <jakarta.servlet.api.version>6.1.0</jakarta.servlet.api.version>
        <jakarta.web.api.version>11.0.0</jakarta.web.api.version>
        <spring-data-commons.version>4.1.1</spring-data-commons.version>
        <reactor-core.version>3.8.7</reactor-core.version>
        <langchain4j.version>1.21.0</langchain4j.version>
        <spring-ai.version>2.0.1</spring-ai.version>
        <slf4j.version>2.0.20</slf4j.version>
        <junit.version>4.13.2</junit.version>
        <junit.jupiter.version>6.1.3</junit.jupiter.version>

        <!-- spreadsheet -->
        <poi.version>5.5.1</poi.version>
        <javaparser.version>3.28.0</javaparser.version>

        <!-- Additional Surefire argLine - set to -javaagent:${org.mockito:mockito-core:jar} in modules using Mockito -->
        <surefire.argLine/>

        <!--
          Ensures modules that do not declare this POM as parent
          (like flow-bom) are updated as well when using versions:set
          to change the project version
        -->
        <processAllModules>true</processAllModules>

    </properties>
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.github.javaparser</groupId>
                <artifactId>javaparser-core</artifactId>
                <version>${javaparser.version}</version>
            </dependency>
            <dependency>
                <groupId>com.vaadin</groupId>
                <artifactId>flow-bom</artifactId>
                <version>${flow.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>com.vaadin</groupId>
                <artifactId>flow-test-generic</artifactId>
                <version>${flow.version}</version>
                <exclusions>
                    <!-- Prevent JUnit 4 leaking into modules that should use JUnit Jupiter APIs-->
                    <exclusion>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>com.vaadin</groupId>
                <artifactId>flow-test-util</artifactId>
                <version>${flow.version}</version>
                <exclusions>
                    <!-- Prevent JUnit 4 leaking into modules that should use JUnit Jupiter APIs-->
                    <exclusion>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>com.vaadin</groupId>
                <artifactId>license-checker</artifactId>
                <version>${license-checker.version}</version>
            </dependency>
            <dependency>
                <groupId>com.vaadin</groupId>
                <artifactId>vaadin-lumo-theme</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>com.vaadin</groupId>
                <artifactId>vaadin-testbench-core</artifactId>
                <version>${testbench.version}</version>
            </dependency>
            <dependency>
                <groupId>com.vaadin</groupId>
                <artifactId>vaadin-testbench-shared</artifactId>
                <version>${testbench.version}</version>
            </dependency>
            <dependency>
                <groupId>jakarta.platform</groupId>
                <artifactId>jakarta.jakartaee-web-api</artifactId>
                <version>${jakarta.web.api.version}</version>
            </dependency>
            <dependency>
                <groupId>jakarta.servlet</groupId>
                <artifactId>jakarta.servlet-api</artifactId>
                <version>${jakarta.servlet.api.version}</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>${junit.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.junit.jupiter</groupId>
                <artifactId>junit-jupiter</artifactId>
                <version>${junit.jupiter.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.junit.jupiter</groupId>
                <artifactId>junit-jupiter-api</artifactId>
                <version>${junit.jupiter.version}</version>
            </dependency>
            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-core</artifactId>
                <version>5.20.0</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.osgi</groupId>
                <artifactId>org.osgi.core</artifactId>
                <version>6.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.osgi</groupId>
                <artifactId>osgi.cmpn</artifactId>
                <version>7.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-simple</artifactId>
                <version>${slf4j.version}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>
    <repositories>
        <repository>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
            <id>central</id>
            <url>https://repo.maven.apache.org/maven2</url>
        </repository>
        <repository>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <id>vaadin-prereleases</id>
            <url>https://maven.vaadin.com/vaadin-prereleases</url>
        </repository>
    </repositories>
    <pluginRepositories>
        <pluginRepository>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
            <id>central</id>
            <url>https://repo.maven.apache.org/maven2</url>
        </pluginRepository>
        <pluginRepository>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <id>vaadin-prereleases</id>
            <url>https://maven.vaadin.com/vaadin-prereleases</url>
        </pluginRepository>
    </pluginRepositories>
    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>3.16.0</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-source-plugin</artifactId>
                    <version>3.4.0</version>
                    <executions>
                        <execution>
                            <id>attach-sources</id>
                            <goals>
                                <goal>jar-no-fork</goal>
                            </goals>
                            <phase>package</phase>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-javadoc-plugin</artifactId>
                    <version>3.12.0</version>
                    <configuration>
                        <quiet>true</quiet>
                        <doclint>none</doclint>
                    </configuration>
                    <executions>
                        <execution>
                            <id>attach-javadocs</id>
                            <goals>
                                <goal>jar</goal>
                            </goals>
                            <phase>package</phase>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <groupId>biz.aQute.bnd</groupId>
                    <artifactId>bnd-maven-plugin</artifactId>
                    <version>7.4.0</version>
                    <configuration>
                        <bnd><![CDATA[
                          // macro reference: https://bnd.bndtools.org/chapters/855-macros-ref.html

                          regexArtifactId: vaadin-(.*)-flow(-.*)?
                          replacementPattern: $1
                          packageNameWithDash: ${replacestring;${project.artifactId};${regexArtifactId};${replacementPattern}}

                          dash: -
                          packageNameWithoutDash: ${replacestring;${packageNameWithDash};${dash};}
                          packageName: ${replacestring;${packageNameWithoutDash};icons;icon}

                          exportPackageDefault: ${project.groupId}.flow.component.${packageName}.*
                          isExportPackageDefault: ${is;${osgi.export.package};default}
                          exportPackage: ${if;${isExportPackageDefault};${exportPackageDefault};${osgi.export.package}}
                          symbolicNameDefault: ${project.groupId}.flow.component.${packageName}
                          symbolicName: ${if;${isExportPackageDefault};${symbolicNameDefault};${osgi.export.package}}

                          Bundle-Name: ${project.artifactId}
                          Bundle-SymbolicName: ${symbolicName}

                          Import-Package: *
                          Export-Package: ${join;${exportPackage};${osgi.export.package.additional}}
                          Bundle-License: ${osgi.bundle.license}

                          CvdlName: ${cvdlName}
                          Implementation-Title: ${project.name}
                          Vaadin-Package-Version: 1
                  includeresource.resources: -src/main/resources

                          ]]></bnd>
                    </configuration>
                    <executions>
                        <execution>
                            <goals>
                                <goal>bnd-process</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <groupId>org.eclipse.jetty.ee10</groupId>
                    <artifactId>jetty-ee10-maven-plugin</artifactId>
                    <version>${jetty.version}</version>
                    <configuration>
                        <httpConnector>
                            <port>${jetty.http.port}</port>
                        </httpConnector>
                        <stopPort>${jetty.stop.port}</stopPort>
                        <stopWait>5</stopWait>
                        <stopKey>foo</stopKey>
                        <scan>${jetty.scan}</scan>
                        <systemProperties>
                            <force>true</force>
                            <project.basedir>${project.basedir}</project.basedir>
                            <vaadin.productionMode>false</vaadin.productionMode>
                            <vaadin.reuseDevServer>true</vaadin.reuseDevServer>
                            <vaadin.frontend.hotdeploy>true</vaadin.frontend.hotdeploy>
                        </systemProperties>
                    </configuration>
                    <executions>
                        <execution>
                            <id>start-jetty</id>
                            <goals>
                                <goal>start-war</goal>
                            </goals>
                            <phase>pre-integration-test</phase>
                        </execution>
                        <execution>
                            <id>stop-jetty</id>
                            <goals>
                                <goal>stop</goal>
                            </goals>
                            <phase>post-integration-test</phase>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>${maven.surefire.plugin.version}</version>
                    <configuration>
                        <argLine>${surefire.argLine}</argLine>
                        <excludes>
                            <exclude>${exclude.tests}</exclude>
                        </excludes>
                        <skip>${skipUnitTests}</skip>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-checkstyle-plugin</artifactId>
                    <version>${maven.checkstyle.plugin.version}</version>
                    <configuration>
                        <configLocation>checkstyle/checkstyle.xml</configLocation>
                        <includeTestSourceDirectory>true</includeTestSourceDirectory>
                    </configuration>
                    <dependencies>
                        <dependency>
                            <groupId>com.puppycrawl.tools</groupId>
                            <artifactId>checkstyle</artifactId>
                            <version>${checkstyle.version}</version>
                        </dependency>
                        <dependency>
                            <groupId>com.vaadin</groupId>
                            <artifactId>vaadin-flow-components-checkstyle-rules</artifactId>
                            <version>${project.version}</version>
                        </dependency>
                    </dependencies>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-failsafe-plugin</artifactId>
                    <version>${maven.failsafe.plugin.version}</version>
                    <configuration>
                        <forkCount>${failsafe.forkCount}</forkCount>
                        <argLine>-Xmx2048m</argLine>
                        <trimStackTrace>false</trimStackTrace>
                        <systemPropertyVariables>
                            <com.vaadin.tests.SharedBrowser.reuseBrowser>${com.vaadin.tests.SharedBrowser.reuseBrowser}</com.vaadin.tests.SharedBrowser.reuseBrowser>
                            <com.vaadin.testbench.Parameters.testsInParallel>${com.vaadin.testbench.Parameters.testsInParallel}</com.vaadin.testbench.Parameters.testsInParallel>
                        </systemPropertyVariables>
                        <excludes>
                            <exclude>${exclude.tests}</exclude>
                        </excludes>
                    </configuration>
                    <dependencies>
                        <!-- Force the JUnit 4 provider for IT tests. TestBench's
                             ParallelRunner (@RunWith) handles browser parameterization
                             ([any_Chrome_] suffixes) and is not compatible with the
                             JUnit Platform provider that is auto-selected when
                             junit-jupiter-engine or junit-vintage-engine are on the
                             classpath. -->
                        <dependency>
                            <groupId>org.apache.maven.surefire</groupId>
                            <artifactId>surefire-junit47</artifactId>
                            <version>${maven.failsafe.plugin.version}</version>
                        </dependency>
                    </dependencies>
                    <executions>
                        <execution>
                            <goals>
                                <goal>integration-test</goal>
                                <goal>verify</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <artifactId>maven-resources-plugin</artifactId>
                    <version>${maven.resources.plugin.version}</version>
                </plugin>
                <plugin>
                    <groupId>com.vaadin</groupId>
                    <artifactId>flow-maven-plugin</artifactId>
                    <version>${flow.version}</version>
                    <configuration>
                        <pnpmEnable>${vaadin.pnpm.enable}</pnpmEnable>
                        <frontendDirectory>./frontend</frontendDirectory>
                    </configuration>
                    <executions>
                        <execution>
                            <goals>
                                <goal>prepare-frontend</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>properties-maven-plugin</artifactId>
                    <version>1.3.1</version>
                    <executions>
                        <execution>
                            <goals>
                                <goal>set-system-properties</goal>
                            </goals>
                            <configuration>
                                <properties>
                                    <property>
                                        <name>vaadin.devmode.liveReload.enabled</name>
                                        <value>false</value>
                                    </property>
                                    <property>
                                        <name>skipJetty</name>
                                        <value>${skipTests}</value>
                                    </property>
                                </properties>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <artifactId>maven-clean-plugin</artifactId>
                    <version>3.5.0</version>
                </plugin>
                <plugin>
                    <artifactId>maven-war-plugin</artifactId>
                    <version>3.5.1</version>
                    <configuration>
                        <failOnMissingWebXml>false</failOnMissingWebXml>
                    </configuration>
                </plugin>
                <plugin>
                    <artifactId>maven-gpg-plugin</artifactId>
                    <version>3.2.8</version>
                </plugin>
                <plugin>
                    <artifactId>maven-install-plugin</artifactId>
                    <version>3.2.0</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-enforcer-plugin</artifactId>
                    <version>3.6.3</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-jar-plugin</artifactId>
                    <version>3.5.1</version>
                </plugin>
                <plugin>
                    <groupId>org.sonatype.plugins</groupId>
                    <artifactId>nexus-staging-maven-plugin</artifactId>
                    <version>1.7.0</version>
                </plugin>
                <!-- Generates the versions file that pins the npm versions of the
                    packages a module ships, from the @NpmPackage annotations declaring
                    them. A module opts in by declaring this plugin in its own build,
                    with no configuration of its own. -->
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>exec-maven-plugin</artifactId>
                    <version>${exec.maven.plugin.version}</version>
                    <executions>
                        <execution>
                            <id>generate-pinned-npm-versions</id>
                            <goals>
                                <goal>exec</goal>
                            </goals>
                            <phase>process-resources</phase>
                            <configuration>
                                <executable>node</executable>
                                <workingDirectory>${project.basedir}</workingDirectory>
                                <arguments>
                                    <argument>${maven.multiModuleProjectDirectory}/scripts/generatePinnedNpmVersions.js</argument>
                                    <argument>src/main/java</argument>
                                    <argument>${project.build.outputDirectory}/META-INF/VAADIN/versions/${project.artifactId}-versions.json</argument>
                                </arguments>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
                <!-- Indexes a module's own classes into META-INF/jandex.idx, which
                    is where the Quarkus extension reads them from. A published
                    component module opts in by declaring this plugin in its own
                    build, with no configuration of its own. -->
                <plugin>
                    <groupId>io.smallrye</groupId>
                    <artifactId>jandex-maven-plugin</artifactId>
                    <version>${jandex.plugin.version}</version>
                    <configuration>
                        <indexVersion>${jandex.format.version}</indexVersion>
                    </configuration>
                    <executions>
                        <execution>
                            <id>make-index</id>
                            <goals>
                                <goal>jandex</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <groupId>com.diffplug.spotless</groupId>
                <artifactId>spotless-maven-plugin</artifactId>
                <version>${spotless.plugin.version}</version>
                <configuration>
                    <java>
                        <eclipse>
                            <file>${maven.multiModuleProjectDirectory}/eclipse/VaadinJavaConventions.xml</file>
                        </eclipse>
                        <excludes>
                            <!-- Do not modify GWT sources / license headers -->
                            <exclude>**/com/google/gwt/**/*.*</exclude>
                        </excludes>
                        <endWithNewline/>
                        <removeUnusedImports/>
                        <importOrder>
                            <wildcardsLast>true</wildcardsLast>
                            <order>java|javax,org,com</order>
                        </importOrder>
                        <licenseHeader>
                            <file>${spotless.licence-header}</file>
                        </licenseHeader>
                    </java>
                    <typescript>
                        <includes>
                            <include>src/**/*.js</include>
                            <include>src/**/*.ts</include>
                            <include>frontend/**/*.js</include>
                            <include>frontend/**/*.ts</include>
                        </includes>
                        <excludes>
                            <exclude>src/**/SpreadsheetSingleScriptTemplate.js</exclude>
                            <exclude>src/main/resources/META-INF/frontend/generated/**</exclude>
                            <exclude>frontend/generated/**</exclude>
                        </excludes>
                        <prettier>
                            <npmExecutable>${spotless.npmExecutable}</npmExecutable>
                            <npmInstallCache>${maven.multiModuleProjectDirectory}/target/.spotless-npm-install-cache</npmInstallCache>
                            <nodeExecutable>${spotless.nodeExecutable}</nodeExecutable>
                            <configFile>${maven.multiModuleProjectDirectory}/.prettierrc</configFile>
                        </prettier>
                    </typescript>
                    <pom>
                        <sortPom>
                            <expandEmptyElements>false</expandEmptyElements>
                            <nrOfIndentSpace>4</nrOfIndentSpace>
                            <sortDependencies>groupId,artifactId</sortDependencies>
                        </sortPom>
                    </pom>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>properties</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
    <profiles>
        <profile>
            <id>merged-it</id>
            <activation>
                <property>
                    <name>run-it</name>
                </property>
            </activation>
            <modules>
                <module>integration-tests</module>
            </modules>
            <build>
                <pluginManagement>
                    <plugins>
                        <!-- Enable production mode when running merged ITs -->
                        <plugin>
                            <groupId>org.eclipse.jetty.ee10</groupId>
                            <artifactId>jetty-ee10-maven-plugin</artifactId>
                            <configuration>
                                <systemProperties>
                                    <vaadin.productionMode>true</vaadin.productionMode>
                                </systemProperties>
                            </configuration>
                        </plugin>
                        <!-- Build frontend bundle for running merged ITs -->
                        <plugin>
                            <groupId>com.vaadin</groupId>
                            <artifactId>flow-maven-plugin</artifactId>
                            <configuration>
                                <frontendDirectory>./frontend</frontendDirectory>
                            </configuration>
                            <executions>
                                <execution>
                                    <goals>
                                        <goal>build-frontend</goal>
                                    </goals>
                                </execution>
                            </executions>
                        </plugin>
                    </plugins>
                </pluginManagement>
            </build>
        </profile>
        <profile>
            <id>sonar-cloud</id>
            <properties>
                <!-- Exclude from duplication checks:
                     - I18N files (repetitive getter/setter boilerplate)
                     - AI controllers (share an intentionally parallel instructions-tool shape per component) -->
                <sonar.cpd.exclusions>**/*I18N.java,**/component/ai/**/*AIController.java</sonar.cpd.exclusions>
                <!-- SonarQube rule exclusions for: Integration tests -->
                <sonar.issue.ignore.multicriteria>e1,e2,e3,e4,e5</sonar.issue.ignore.multicriteria>
                <!-- Disable: Public types, methods and fields (API) should be documented with Javadoc -->
                <sonar.issue.ignore.multicriteria.e1.ruleKey>java:S1176</sonar.issue.ignore.multicriteria.e1.ruleKey>
                <sonar.issue.ignore.multicriteria.e1.resourceKey>**/*-integration-tests/**/*.java</sonar.issue.ignore.multicriteria.e1.resourceKey>
                <!-- Disable: Constructors should only call non-overridable methods -->
                <sonar.issue.ignore.multicriteria.e2.ruleKey>java:S1699</sonar.issue.ignore.multicriteria.e2.ruleKey>
                <sonar.issue.ignore.multicriteria.e2.resourceKey>**/*-integration-tests/**/*.java</sonar.issue.ignore.multicriteria.e2.resourceKey>
                <!-- Disable: String literals should not be duplicated -->
                <sonar.issue.ignore.multicriteria.e3.ruleKey>java:S1192</sonar.issue.ignore.multicriteria.e3.ruleKey>
                <sonar.issue.ignore.multicriteria.e3.resourceKey>**/*-integration-tests/**/*.java</sonar.issue.ignore.multicriteria.e3.resourceKey>
                <!-- Disable: Inheritance tree of classes should not be too deep -->
                <sonar.issue.ignore.multicriteria.e4.ruleKey>java:S110</sonar.issue.ignore.multicriteria.e4.ruleKey>
                <sonar.issue.ignore.multicriteria.e4.resourceKey>**/*-integration-tests/**/*.java</sonar.issue.ignore.multicriteria.e4.resourceKey>
                <!-- Disable: Standard outputs should not be used directly to log anything -->
                <sonar.issue.ignore.multicriteria.e5.ruleKey>java:S106</sonar.issue.ignore.multicriteria.e5.ruleKey>
                <sonar.issue.ignore.multicriteria.e5.resourceKey>**/*-integration-tests/**/*.java</sonar.issue.ignore.multicriteria.e5.resourceKey>
            </properties>
        </profile>
    </profiles>
</project>
