<?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/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.squashtest.tm.plugin</groupId>
  <artifactId>sync.xsquash4gitlab</artifactId>
  <name>sync-xsquash4gitlab</name>
  <version>13.0.3.RC2</version>
  <description>Synchronize the test workflow with GitLab projects</description>
  <url>http://www.squashtest.org</url>
  <inceptionYear>2022</inceptionYear>
  <scm>
    <connection>scm:git:${project.basedir}</connection>
    <developerConnection>scm:git:${project.basedir}</developerConnection>
  </scm>
  <organization>
    <name>Henix, henix.fr</name>
    <url>http://www.henix.fr</url>
  </organization>
  <build>
    <testSourceDirectory>src/test/groovy</testSourceDirectory>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>${maven-compiler-plugin.version}</version>
          <dependencies>
            <dependency>
              <groupId>org.codehaus.groovy</groupId>
              <artifactId>groovy-eclipse-batch</artifactId>
              <version>${groovy-eclipse-batch.version}</version>
              <scope>compile</scope>
            </dependency>
            <dependency>
              <groupId>org.codehaus.groovy</groupId>
              <artifactId>groovy-eclipse-compiler</artifactId>
              <version>${groovy-eclipse-compiler.version}</version>
              <scope>compile</scope>
            </dependency>
          </dependencies>
          <configuration>
            <compilerId>groovy-eclipse-compiler</compilerId>
            <parameters>true</parameters>
            <excludes>
              <exclude>src/it/groovy</exclude>
            </excludes>
            <release>${java.version}</release>
          </configuration>
        </plugin>
        <plugin>
          <artifactId>maven-release-plugin</artifactId>
          <version>${maven-release-plugin.version}</version>
        </plugin>
        <plugin>
          <groupId>com.diffplug.spotless</groupId>
          <artifactId>spotless-maven-plugin</artifactId>
          <version>${spotless-maven-plugin.version}</version>
          <configuration>
            <java>
              <googleJavaFormat>
                <version>${google-java-format.version}</version>
              </googleJavaFormat>
              <indent>
                <tabs>true</tabs>
                <spacesPerTab>2</spacesPerTab>
              </indent>
              <indent>
                <spaces>true</spaces>
                <spacesPerTab>4</spacesPerTab>
              </indent>
              <removeUnusedImports />
            </java>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <groupId>com.outbrain.swinfra</groupId>
        <artifactId>ci-friendly-flatten-maven-plugin</artifactId>
        <version>${ci-friendly.version}</version>
        <executions>
          <execution>
            <goals>
              <goal>clean</goal>
              <goal>flatten</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>${maven-surefire-plugin.version}</version>
      </plugin>
      <plugin>
        <groupId>com.github.eirslett</groupId>
        <artifactId>frontend-maven-plugin</artifactId>
        <version>${frontend-maven-plugin.version}</version>
        <executions>
          <execution>
            <id>install node and yarn</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>install-node-and-yarn</goal>
            </goals>
            <configuration>
              <nodeVersion>${frontend-node.version}</nodeVersion>
              <yarnVersion>${frontend-yarn.version}</yarnVersion>
            </configuration>
          </execution>
          <execution>
            <id>yarn</id>
            <goals>
              <goal>yarn</goal>
            </goals>
            <configuration>
              <arguments>install --frozen-lockfile</arguments>
            </configuration>
          </execution>
          <execution>
            <id>yarn build</id>
            <goals>
              <goal>yarn</goal>
            </goals>
            <configuration>
              <arguments>build</arguments>
            </configuration>
          </execution>
          <execution>
            <id>generate-code</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>yarn</goal>
            </goals>
            <configuration>
              <arguments>generate-code</arguments>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <version>${build-helper-maven-plugin.version}</version>
        <executions>
          <execution>
            <id>add-generated-sources</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>add-source</goal>
            </goals>
            <configuration>
              <sources>
                <source>${project.build.directory}/generated-sources/batch/</source>
              </sources>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>com.github.aoudiamoncef</groupId>
        <artifactId>apollo-client-maven-plugin</artifactId>
        <version>${apollo-client-maven-plugin.version}</version>
        <executions>
          <execution>
            <phase>process-sources</phase>
            <goals>
              <goal>generate</goal>
            </goals>
            <configuration>
              <services>
                <example-api>
                  <compilationUnit>
                    <name>generate-graphql-classes</name>
                    <compilerParams>
                      <rootPackageName>org.squashtest.tm.plugin.xsquash4gitlab.graphql.generated</rootPackageName>
                    </compilerParams>
                  </compilationUnit>
                </example-api>
              </services>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>com.mycila</groupId>
        <artifactId>license-maven-plugin</artifactId>
        <version>${license-maven-plugin.version}</version>
        <executions>
          <execution>
            <phase>validate</phase>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <strictCheck>true</strictCheck>
          <properties>
            <project.label>GitLab synchronization connector for Squash TM (${project.name})</project.label>
            <license.yearSpan>${project.inceptionYear}</license.yearSpan>
            <license.copyrightOwner>${project.organization.name}</license.copyrightOwner>
          </properties>
          <licenseSets>
            <licenseSet>
              <header>src/main/license/header.txt</header>
              <excludes>
                <exclude>**/NOTICE.*</exclude>
                <exclude>**/README.*</exclude>
                <exclude>**/NOTICE</exclude>
                <exclude>**/README</exclude>
                <exclude>**/README*.*</exclude>
                <exclude>**/readme*.*</exclude>
                <exclude>**/*.mf</exclude>
                <exclude>**/*.orig</exclude>
                <exclude>**/.hgtags</exclude>
                <exclude>**/.hgignore</exclude>
                <exclude>**/build.properties</exclude>
                <exclude>**/pom.properties</exclude>
                <exclude>**/pom.xml</exclude>
                <exclude>.settings</exclude>
                <exclude>build.properties</exclude>
                <exclude>.classpath</exclude>
                <exclude>.project</exclude>
                <exclude>**/license/**</exclude>
                <exclude>**/*.iml</exclude>
                <exclude>.idea/**</exclude>
                <exclude>**/nbactions.xml</exclude>
                <exclude>**/nb-configuration.xml</exclude>
                <exclude>**/pom.xml.*</exclude>
                <exclude>META-INF/**</exclude>
                <exclude>Jenkinsfile</exclude>
                <exclude>node_modules/**</exclude>
                <exclude>node/**</exclude>
                <exclude>dist/**</exclude>
                <exclude>src/main/front-end/**</exclude>
                <exclude>.yarnrc</exclude>
                <exclude>yarn.lock</exclude>
                <exclude>yarn-error.log</exclude>
                <exclude>.husky/**</exclude>
                <exclude>.angular/**</exclude>
                <exclude>.eslintignore</exclude>
                <exclude>.lintstagedrc</exclude>
                <exclude>.prettierrc</exclude>
                <exclude>.prettierignore</exclude>
                <exlude>src/main/assembly/layout/INSTALL</exlude>
                <exclude>.editorconfig</exclude>
                <exclude>.cache/**</exclude>
                <exclude>coverage/**</exclude>
                <exclude>.husky/**</exclude>
                <exclude>.m2/**</exclude>
                <exclude>**/.ci-friendly-pom.xml</exclude>
                <exclude>**/*.graphql</exclude>
                <exclude>**/code-generation/templates/**</exclude>
              </excludes>
            </licenseSet>
          </licenseSets>
          <mapping>
            <tag>DYNASCRIPT_STYLE</tag>
          </mapping>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>${maven-shade-plugin.version}</version>
        <executions>
          <execution>
            <phase>verify</phase>
            <goals>
              <goal>shade</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <transformers>
            <transformer />
          </transformers>
          <artifactSet>
            <includes>
              <include>org.squashtest.tm.plugin</include>
              <include>org.glassfish.*:*</include>
              <include>org.apache.httpcomponents:*</include>
              <include>org.jvnet.mimepull:*</include>
              <include>javax.ws.rs:*</include>
              <include>com.squareup.okhttp3:*</include>
              <include>com.apollographql.apollo:*</include>
              <include>org.jetbrains.*:*</include>
              <include>com.squareup.okio:*</include>
            </includes>
          </artifactSet>
          <relocations>
            <relocation>
              <pattern>org.glassfish</pattern>
              <shadedPattern>xsquash4gitlab.org.glassfish</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.apache.httpcomponents</pattern>
              <shadedPattern>xsquash4gitlab.org.apache.httpcomponents</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.jvnet</pattern>
              <shadedPattern>xsquash4gitlab.org.jvnet</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.aopalliance</pattern>
              <shadedPattern>xsquash4gitlab.org.aopalliance</shadedPattern>
            </relocation>
            <relocation>
              <pattern>javax.ws.rs</pattern>
              <shadedPattern>xsquash4gitlab.javax.ws.rs</shadedPattern>
            </relocation>
            <relocation>
              <pattern>okhttp3</pattern>
              <shadedPattern>xsquash4gitlab.okhttp3</shadedPattern>
            </relocation>
            <relocation>
              <pattern>com.apollographql.apollo</pattern>
              <shadedPattern>xsquash4gitlab.com.apollographql.apollo</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.jetbrains</pattern>
              <shadedPattern>xsquash4gitlab.org.jetbrains</shadedPattern>
            </relocation>
            <relocation>
              <pattern>kotlin</pattern>
              <shadedPattern>xsquash4gitlab.kotlin</shadedPattern>
            </relocation>
            <relocation>
              <pattern>okio</pattern>
              <shadedPattern>xsquash4gitlab.okio</shadedPattern>
            </relocation>
          </relocations>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-resources-plugin</artifactId>
        <executions>
          <execution>
            <id>prepare-package</id>
            <phase>prepare-package</phase>
            <goals>
              <goal>copy-resources</goal>
            </goals>
            <configuration>
              <outputDirectory>${basedir}/target/classes/META-INF/resources/plugin/xsquash4gitlab</outputDirectory>
              <resources>
                <resource>
                  <directory>${project.basedir}/dist/xsquash4gitlab</directory>
                </resource>
                <resource>
                  <directory>${project.basedir}/src/main/resources</directory>
                </resource>
              </resources>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>no-front</id>
      <build>
        <plugins>
          <plugin>
            <groupId>com.github.eirslett</groupId>
            <artifactId>frontend-maven-plugin</artifactId>
            <version>${frontend-maven-plugin.version}</version>
            <executions>
              <execution>
                <id>install node and yarn</id>
                <phase>none</phase>
              </execution>
              <execution>
                <id>yarn</id>
                <phase>none</phase>
              </execution>
              <execution>
                <id>yarn build</id>
                <phase>none</phase>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>production</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <version>${maven-assembly-plugin.version}</version>
            <executions>
              <execution>
                <phase>verify</phase>
                <goals>
                  <goal>single</goal>
                </goals>
                <configuration>
                  <descriptors>
                    <descriptor>src/main/assembly/assembly.xml</descriptor>
                  </descriptors>
                  <appendAssemblyId>false</appendAssemblyId>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <repositories>
    <repository>
      <id>squash-release</id>
      <url>http://repo.squashtest.org/maven2/releases</url>
    </repository>
    <repository>
      <id>squash-snapshot</id>
      <url>http://repo.squashtest.org/maven2/snapshots</url>
    </repository>
    <repository>
      <releases>
        <checksumPolicy>warn</checksumPolicy>
      </releases>
      <snapshots>
        <updatePolicy>daily</updatePolicy>
        <checksumPolicy>warn</checksumPolicy>
      </snapshots>
      <id>atlassian-public</id>
      <url>https://m2proxy.atlassian.com/repository/public</url>
    </repository>
  </repositories>
  <dependencies>
    <dependency>
      <groupId>org.squashtest.tm</groupId>
      <artifactId>core.api</artifactId>
      <version>13.0.3.RC2</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.squashtest.tm</groupId>
      <artifactId>core.wizard.api</artifactId>
      <version>13.0.3.RC2</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.squashtest.tm</groupId>
      <artifactId>tm.domain</artifactId>
      <version>13.0.3.RC2</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.squashtest.tm</groupId>
      <artifactId>tm.service</artifactId>
      <version>13.0.3.RC2</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.squashtest.tm</groupId>
      <artifactId>tm.web</artifactId>
      <version>13.0.3.RC2</version>
      <classifier>classes</classifier>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.google.guava</groupId>
      <artifactId>guava</artifactId>
      <version>33.2.1-jre</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>2.0.17</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-beans</artifactId>
      <version>6.2.15</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-core</artifactId>
      <version>6.2.15</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>jakarta.xml.bind</groupId>
      <artifactId>jakarta.xml.bind-api</artifactId>
      <version>4.0.4</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.squashtest.tm</groupId>
      <artifactId>spock-test-dependencies</artifactId>
      <version>13.0.3.RC2</version>
      <type>pom</type>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>cglib-nodep</artifactId>
          <groupId>cglib</groupId>
        </exclusion>
        <exclusion>
          <artifactId>spock-core</artifactId>
          <groupId>org.spockframework</groupId>
        </exclusion>
        <exclusion>
          <artifactId>spock-spring</artifactId>
          <groupId>org.spockframework</groupId>
        </exclusion>
        <exclusion>
          <artifactId>spock-unitils</artifactId>
          <groupId>org.spockframework</groupId>
        </exclusion>
        <exclusion>
          <artifactId>spring-boot-starter-test</artifactId>
          <groupId>org.springframework.boot</groupId>
        </exclusion>
        <exclusion>
          <artifactId>unitils-core</artifactId>
          <groupId>org.unitils</groupId>
        </exclusion>
        <exclusion>
          <artifactId>unitils-database</artifactId>
          <groupId>org.unitils</groupId>
        </exclusion>
        <exclusion>
          <artifactId>unitils-dbunit</artifactId>
          <groupId>org.unitils</groupId>
        </exclusion>
        <exclusion>
          <artifactId>unitils-spring</artifactId>
          <groupId>org.unitils</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.jetbrains</groupId>
      <artifactId>annotations</artifactId>
      <version>26.0.2</version>
      <scope>compile</scope>
    </dependency>
  </dependencies>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.squashtest.tm</groupId>
        <artifactId>squash-tm-bom</artifactId>
        <version>${squash.core.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <distributionManagement>
    <repository>
      <id>squash-release-deploy-repo</id>
      <name>Squash releases deployment repo</name>
      <url>${deploy-repo.release.url}</url>
    </repository>
    <snapshotRepository>
      <id>squash-snapshot-deploy-repo</id>
      <name>Squash snapshot deployment repo</name>
      <url>${deploy-repo.snapshot.url}</url>
    </snapshotRepository>
  </distributionManagement>
  <properties>
    <sonar.projectName>${project.name}${env.APPEND_SONAR_PROJECT_NAME}</sonar.projectName>
    <annotations.version>26.0.2</annotations.version>
    <verbose.compiler>false</verbose.compiler>
    <apollo-client-maven-plugin.version>4.0.6</apollo-client-maven-plugin.version>
    <maven-shade-plugin.version>3.6.1</maven-shade-plugin.version>
    <maven-compiler-plugin.version>3.14.1</maven-compiler-plugin.version>
    <frontend-maven-plugin.version>1.15.1</frontend-maven-plugin.version>
    <revision>13.0.3</revision>
    <spotless-maven-plugin.version>3.0.0</spotless-maven-plugin.version>
    <groovy-eclipse-compiler.version>3.9.0</groovy-eclipse-compiler.version>
    <maven-surefire-plugin.version>3.5.4</maven-surefire-plugin.version>
    <changelist>-SNAPSHOT</changelist>
    <frontend-yarn.version>v1.22.19</frontend-yarn.version>
    <license-maven-plugin.version>5.0.0</license-maven-plugin.version>
    <google-java-format.version>1.28.0</google-java-format.version>
    <maven-release-plugin.version>3.1.1</maven-release-plugin.version>
    <apollo.version>2.5.14</apollo.version>
    <groovy-eclipse-batch.version>4.0.26-01</groovy-eclipse-batch.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <squash.core.version>13.0.3.RC2</squash.core.version>
    <ci-friendly.version>1.0.28</ci-friendly.version>
    <maven-failsafe-plugin.version>3.5.3</maven-failsafe-plugin.version>
    <frontend-node.version>v22.18.0</frontend-node.version>
    <java.version>21</java.version>
    <build-helper-maven-plugin.version>3.6.1</build-helper-maven-plugin.version>
    <maven-assembly-plugin.version>3.7.1</maven-assembly-plugin.version>
    <sonar.projectKey>${project.groupId}:${project.artifactId}${env.APPEND_SONAR_PROJECT_KEY}</sonar.projectKey>
  </properties>
</project>
