<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <groupId>hu.blackbelt.judo</groupId>
  <artifactId>judo-operation-utils</artifactId>
  <version>1.1.2</version>
  <packaging>bundle</packaging>
  <name>Judo Operation Utils</name>
  <description>JUDO Operation Utils</description>
  <url>http://github.com/${project-repositoryId}</url>
  <licenses>
    <license>
      <name>Eclipse Public License 2.0</name>
      <url>https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt</url>
    </license>
  </licenses>
  <developers>
    <developer>
      <id>bertalan-fodor</id>
      <name>Bertalan Fodor</name>
      <email>bertalan.fodor@blackbelt.hu</email>
      <url>https://github.com/bertalan-fodor</url>
      <organization>BlackBelt Technology</organization>
      <organizationUrl>http://www.blackbelt.hu</organizationUrl>
    </developer>
    <developer>
      <id>robson</id>
      <name>Csákány Róbert</name>
      <email>robert.csakany@blackbelt.hu</email>
      <url>https://github.com/robertcsakany</url>
      <organization>BlackBelt Technology</organization>
      <organizationUrl>http://www.blackbelt.hu</organizationUrl>
    </developer>
  </developers>
  <scm>
    <connection>scm:git:git@github.com:${project-repositoryId}.git</connection>
    <developerConnection>scm:git:ssh://${git.username}@github.com:${project-repositoryId}.git</developerConnection>
    <url>http://github.com/${project-repositoryId}</url>
  </scm>
  <issueManagement>
    <system>GitHub Issues</system>
    <url>https://github.com/${project-repositoryId}/issues</url>
  </issueManagement>
  <properties>
    <judo-meta-asm-version>1.1.3</judo-meta-asm-version>
    <surefire-version>3.0.0-M7</surefire-version>
    <project-shortname>judo-operation-utils</project-shortname>
    <osgi-ds-version>1.3.0</osgi-ds-version>
    <sonar.java.source>${java.version}</sonar.java.source>
    <sonar-maven-plugin-version>3.9.1.2184</sonar-maven-plugin-version>
    <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
    <maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format>
    <project-repositoryId>BlackBeltTechnology/judo-operation-utils</project-repositoryId>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <slf4j-version>1.7.32</slf4j-version>
    <timestamp>${maven.build.timestamp}</timestamp>
    <sonar.language>java</sonar.language>
    <osgi-default-import>org.osgi.framework;version="[1.8,2.0)",
            !lombok,
            javax.annotation;version="[1.0,2)",
            com.google.gson;version="[2.1,3)",
            com.google.gson.stream;version="[2.1,3)"</osgi-default-import>
    <judo-dao-api-version>1.0.3</judo-dao-api-version>
    <maven>3.8.3</maven>
    <maven.compiler.source>11</maven.compiler.source>
    <logback-test-config>${maven.multiModuleProjectDirectory}/logback-test.xml</logback-test-config>
    <jacoco.version>0.8.8</jacoco.version>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <revision>1.1.2</revision>
    <maven.compiler.target>11</maven.compiler.target>
    <lombok-version>1.18.24</lombok-version>
    <judo-dispatcher-api-version>1.0.2</judo-dispatcher-api-version>
    <src.dir>src/main</src.dir>
  </properties>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>${slf4j-version}</version>
      </dependency>
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-ext</artifactId>
        <version>${slf4j-version}</version>
      </dependency>
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>jul-to-slf4j</artifactId>
        <version>${slf4j-version}</version>
      </dependency>
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>jql-over-slf4j</artifactId>
        <version>${slf4j-version}</version>
      </dependency>
      <dependency>
        <groupId>org.hamcrest</groupId>
        <artifactId>hamcrest-library</artifactId>
        <version>2.2</version>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>hu.blackbelt.judo.meta</groupId>
      <artifactId>hu.blackbelt.judo.meta.asm.model</artifactId>
      <version>${judo-meta-asm-version}</version>
    </dependency>
    <dependency>
      <groupId>hu.blackbelt.judo</groupId>
      <artifactId>judo-dispatcher-api</artifactId>
      <version>${judo-dispatcher-api-version}</version>
    </dependency>
    <dependency>
      <groupId>hu.blackbelt.judo</groupId>
      <artifactId>judo-dao-api</artifactId>
      <version>${judo-dao-api-version}</version>
    </dependency>
    <dependency>
      <groupId>ch.qos.logback</groupId>
      <artifactId>logback-classic</artifactId>
      <version>1.4.1</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.projectlombok</groupId>
      <artifactId>lombok</artifactId>
      <version>1.18.24</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.eclipse.emf</groupId>
      <artifactId>org.eclipse.emf.ecore</artifactId>
      <version>2.12.0</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.eclipse.emf</groupId>
      <artifactId>org.eclipse.emf.common</artifactId>
      <version>2.21.0</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.google.code.gson</groupId>
      <artifactId>gson</artifactId>
      <version>2.9.1</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.osgi</groupId>
      <artifactId>org.osgi.core</artifactId>
      <version>6.0.0</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.osgi</groupId>
      <artifactId>osgi.cmpn</artifactId>
      <version>6.0.0</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.osgi</groupId>
      <artifactId>org.osgi.annotation</artifactId>
      <version>6.0.0</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter</artifactId>
      <version>5.9.1</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.hamcrest</groupId>
      <artifactId>hamcrest</artifactId>
      <version>2.2</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-core</artifactId>
      <version>4.8.0</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.hamcrest</groupId>
      <artifactId>hamcrest-library</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>com.jcabi</groupId>
      <artifactId>jcabi-log</artifactId>
      <version>0.22.0</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-source-plugin</artifactId>
          <version>3.2.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>3.10.0</version>
          <configuration>
            <source>11</source>
            <target>11</target>
          </configuration>
        </plugin>
        <plugin>
          <artifactId>maven-resources-plugin</artifactId>
          <version>3.3.0</version>
        </plugin>
        <plugin>
          <artifactId>maven-install-plugin</artifactId>
          <version>3.0.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-deploy-plugin</artifactId>
          <version>3.0.0</version>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>build-helper-maven-plugin</artifactId>
          <version>3.3.0</version>
        </plugin>
        <plugin>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>${surefire-version}</version>
          <configuration>
            <trimStackTrace>false</trimStackTrace>
            <systemPropertyVariables>
              <logback.configurationFile>${logback-test-config}</logback.configurationFile>
            </systemPropertyVariables>
            <argLine>${jacoco.agent}
                            -Dfile.encoding=UTF-8
                            --add-opens java.base/java.lang=ALL-UNNAMED
                            --add-opens java.base/java.util=ALL-UNNAMED
                            --add-opens java.base/java.time=ALL-UNNAMED
                            --add-opens java.base/java.net=ALL-UNNAMED</argLine>
            <trimStackTrace>false</trimStackTrace>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.felix</groupId>
          <artifactId>maven-bundle-plugin</artifactId>
          <version>5.1.8</version>
        </plugin>
        <plugin>
          <groupId>org.sonarsource.scanner.maven</groupId>
          <artifactId>sonar-maven-plugin</artifactId>
          <version>${sonar-maven-plugin-version}</version>
        </plugin>
        <plugin>
          <groupId>org.eclipse.m2e</groupId>
          <artifactId>lifecycle-mapping</artifactId>
          <version>1.0.0</version>
          <configuration>
            <lifecycleMappingMetadata>
              <pluginExecutions>
                <pluginExecution>
                  <pluginExecutionFilter>
                    <groupId>hu.blackbelt</groupId>
                    <artifactId>unpack-artifact-maven-plugin</artifactId>
                    <versionRange>[1.0.0,)</versionRange>
                    <goals>
                      <goal>unpack</goal>
                    </goals>
                  </pluginExecutionFilter>
                  <action>
                    <ignore />
                  </action>
                </pluginExecution>
                <pluginExecution>
                  <pluginExecutionFilter>
                    <groupId>org.apache.karaf.tooling</groupId>
                    <artifactId>karaf-maven-plugin</artifactId>
                    <versionRange>[4.2.1,)</versionRange>
                    <goals>
                      <goal>verify</goal>
                      <goal>features-generate-descriptor</goal>
                    </goals>
                  </pluginExecutionFilter>
                  <action>
                    <ignore />
                  </action>
                </pluginExecution>
              </pluginExecutions>
            </lifecycleMappingMetadata>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <extensions>true</extensions>
        <configuration>
          <obrRepository>NONE</obrRepository>
          <instructions>
            <Export-Package>hu.blackbelt.judo.operation.utils*;version=${project.version}</Export-Package>
            <Import-Package>${osgi-default-import},
                            *</Import-Package>
          </instructions>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>flatten-maven-plugin</artifactId>
        <version>1.3.0</version>
        <executions>
          <execution>
            <id>flatten</id>
            <phase>process-resources</phase>
            <goals>
              <goal>flatten</goal>
            </goals>
          </execution>
          <execution>
            <id>flatten.clean</id>
            <phase>clean</phase>
            <goals>
              <goal>clean</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <updatePomFile>true</updatePomFile>
          <flattenMode>resolveCiFriendliesOnly</flattenMode>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.jacoco</groupId>
        <artifactId>jacoco-maven-plugin</artifactId>
        <version>${jacoco.version}</version>
        <executions>
          <execution>
            <id>jacoco-initialize</id>
            <goals>
              <goal>prepare-agent</goal>
            </goals>
          </execution>
          <execution>
            <id>jacoco-report</id>
            <goals>
              <goal>report</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <propertyName>jacoco.agent</propertyName>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>sign-artifacts</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.simplify4u.plugins</groupId>
            <artifactId>sign-maven-plugin</artifactId>
            <version>1.0.1</version>
            <executions>
              <execution>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>release-dummy</id>
      <distributionManagement>
        <repository>
          <id>dummy-distribution</id>
          <url>file:///tmp/${project.groupId}-${project.artifactId}-${project.version}/maven-release/</url>
        </repository>
        <snapshotRepository>
          <id>dummy-distribution</id>
          <url>file:///tmp/${project.groupId}-${project.artifactId}-${project.version}/maven-snapshot/</url>
        </snapshotRepository>
      </distributionManagement>
    </profile>
    <profile>
      <id>release-judong</id>
      <distributionManagement>
        <repository>
          <id>judong-nexus-distribution</id>
          <url>https://nexus.judo.technology/repository/maven-judong-snapshots/</url>
        </repository>
        <snapshotRepository>
          <id>judong-nexus-distribution</id>
          <url>https://nexus.judo.technology/repository/maven-judong-snapshots/</url>
        </snapshotRepository>
      </distributionManagement>
    </profile>
    <profile>
      <id>release-central</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.sonatype.plugins</groupId>
            <artifactId>nexus-staging-maven-plugin</artifactId>
            <extensions>true</extensions>
            <configuration>
              <serverId>ossrh</serverId>
              <nexusUrl>https://oss.sonatype.org/</nexusUrl>
              <autoReleaseAfterClose>true</autoReleaseAfterClose>
              <stagingProgressTimeoutMinutes>15</stagingProgressTimeoutMinutes>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <distributionManagement>
        <repository>
          <id>ossrh</id>
          <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
        </repository>
        <snapshotRepository>
          <id>ossrh</id>
          <url>https://oss.sonatype.org/content/repositories/snapshots</url>
        </snapshotRepository>
      </distributionManagement>
    </profile>
    <profile>
      <id>generate-github-asciidoc-diagrams</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.asciidoctor</groupId>
            <artifactId>asciidoctor-maven-plugin</artifactId>
            <version>${asciidoctor.maven.plugin.version}</version>
            <executions>
              <execution>
                <id>generate-html-doc</id>
                <phase>generate-resources</phase>
                <goals>
                  <goal>process-asciidoc</goal>
                </goals>
                <configuration>
                  <backend>html5</backend>
                  <attributes>
                    <imagesdir>./images</imagesdir>
                    <toc>left</toc>
                    <icons>font</icons>
                    <sectanchors>true</sectanchors>
                    <idprefix />
                    <idseparator>-</idseparator>
                  </attributes>
                </configuration>
              </execution>
            </executions>
            <dependencies>
              <dependency>
                <groupId>org.jruby</groupId>
                <artifactId>jruby-complete</artifactId>
                <version>${jruby.version}</version>
              </dependency>
              <dependency>
                <groupId>org.asciidoctor</groupId>
                <artifactId>asciidoctorj</artifactId>
                <version>${asciidoctorj.version}</version>
              </dependency>
              <dependency>
                <groupId>org.asciidoctor</groupId>
                <artifactId>asciidoctorj-diagram</artifactId>
                <version>${asciidoctorj.diagram.version}</version>
              </dependency>
              <dependency>
                <groupId>org.asciidoctor</groupId>
                <artifactId>asciidoctorj-diagram-plantuml</artifactId>
                <version>1.2022.5</version>
              </dependency>
              <dependency>
                <groupId>org.asciidoctor</groupId>
                <artifactId>asciidoctorj-diagram-ditaamini</artifactId>
                <version>1.0.3</version>
              </dependency>
            </dependencies>
            <configuration>
              <sourceDirectory>./.github</sourceDirectory>
              <requires>
                <require>asciidoctor-diagram</require>
              </requires>
              <attributes></attributes>
            </configuration>
          </plugin>
          <plugin>
            <artifactId>maven-resources-plugin</artifactId>
            <version>3.3.0</version>
            <executions>
              <execution>
                <id>copy-generated-gitflow-diagrams</id>
                <phase>generate-resources</phase>
                <goals>
                  <goal>copy-resources</goal>
                </goals>
                <configuration>
                  <outputDirectory>${basedir}/.github</outputDirectory>
                  <resources>
                    <resource>
                      <directory>${basedir}/target/generated-docs/images/</directory>
                      <includes>
                        <include>*.png</include>
                      </includes>
                    </resource>
                  </resources>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
      <properties>
        <asciidoctor.maven.plugin.version>2.2.2</asciidoctor.maven.plugin.version>
        <asciidoctorj.version>2.5.6</asciidoctorj.version>
        <asciidoctorj.diagram.version>2.2.3</asciidoctorj.diagram.version>
        <jruby.version>9.3.4.0</jruby.version>
      </properties>
    </profile>
    <profile>
      <id>update-source-code-license</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>license-maven-plugin</artifactId>
            <version>2.0.0</version>
            <executions>
              <execution>
                <id>first</id>
                <phase>process-sources</phase>
                <goals>
                  <goal>update-file-header</goal>
                </goals>
                <configuration>
                  <licenseName>epl_v2</licenseName>
                  <roots>
                    <root>src/main/java</root>
                    <root>src/test</root>
                  </roots>
                </configuration>
              </execution>
              <execution>
                <id>second</id>
                <phase>process-sources</phase>
                <goals>
                  <goal>update-project-license</goal>
                </goals>
                <configuration>
                  <licenseName>epl_v2</licenseName>
                </configuration>
              </execution>
            </executions>
            <configuration>
              <verbose>true</verbose>
              <addSvnKeyWords>false</addSvnKeyWords>
              <organizationName>BlackBelt Technology</organizationName>
              <inceptionYear>2018</inceptionYear>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>
