<?xml version="1.0" encoding="UTF-8"?>
<!--

    Original work Copyright (C) 2011 Everit Kft. (http://www.everit.org)
    Modified work Copyright (c) 2019 Isaias Arellano - isaias.arellano.delgado@gmail.com

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

            http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<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>
    <groupId>com.github.iarellano</groupId>
    <artifactId>org.everit.json.schema</artifactId>
    <!--<version>0.0.0-develop</version>-->
    <version>1.10.0</version>
    <packaging>bundle</packaging>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
        <jacoco.version>0.7.9</jacoco.version>
        <current.version>1.10.0</current.version>
    </properties>
    <name>everit-org/json-schema</name>
    <url>https://github.com/iarellano/json-schema</url>
    <description>This is a fork of the implementation of the JSON Schema Core Draft v4 specification built with the org.json API which also supports internationalization</description>
    <licenses>
        <license>
            <name>Apache License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
            <distribution>repo</distribution>
        </license>
    </licenses>
    <developers>
        <developer>
            <name>Everit Team</name>
        </developer>
    </developers>
    <contributors>
        <contributor>
            <name>Isaias Arellano</name>
            <email>isaias.arellano.delgado@gmail.com</email>
        </contributor>
    </contributors>
    <organization>
        <name>Everit Kft.</name>
        <url>http://www.everit.org</url>
    </organization>
    <scm>
        <connection>scm:git:git://github.com/iarellano/json-schema.git</connection>
        <developerConnection>scm:git:https://github.com/iarellano/json-schema.git</developerConnection>
        <url>https://github.com/iarellano/json-schema</url>
      <tag>org.everit.json.schema-1.10.0</tag>
  </scm>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <version>3.2.0</version>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                        <Import-Package>*
                        </Import-Package>
                        <Export-Package>
                            org.everit.json.schema;version=${project.version},
                            org.everit.json.schema.loader;version=${project.version},
                            org.everit.json.schema.regexp;version=${project.version}
                            org.everit.json.schema.event;version=${project.version}
                        </Export-Package>
                    </instructions>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <version>${jacoco.version}</version>
                <executions>
                    <execution>
                        <id>default-prepare-agent</id>
                        <goals>
                            <goal>prepare-agent</goal>
                        </goals>
                        <configuration>
                            <propertyName>surefireArgLine</propertyName>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <groupId>org.apache.maven.plugins</groupId>
                <version>2.20</version>
                <configuration>
                    <argLine>${surefireArgLine}</argLine>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.eluder.coveralls</groupId>
                <artifactId>coveralls-maven-plugin</artifactId>
                <version>4.3.0</version>
            </plugin>
            <!-- There is no previous version of this modified plugin, therefore no previous versions is to be verified -->
            <!--<plugin>-->
                <!--<groupId>com.github.siom79.japicmp</groupId>-->
                <!--<artifactId>japicmp-maven-plugin</artifactId>-->
                <!--<version>0.13.0</version>-->
                <!--<configuration>-->
                    <!--<oldVersion>-->
                        <!--<dependency>-->
                            <!--<groupId>com.github.iarellano</groupId>-->
                            <!--<artifactId>org.everit.json.schema</artifactId>-->
                            <!--<version>${current.version}</version>-->
                            <!--<type>jar</type>-->
                        <!--</dependency>-->
                    <!--</oldVersion>-->
                    <!--<newVersion>-->
                        <!--<file>-->
                            <!--<path>${project.build.directory}/${project.artifactId}-${project.version}.jar</path>-->
                        <!--</file>-->
                    <!--</newVersion>-->
                    <!--<parameter>-->
                        <!--<skipDiffReport>true</skipDiffReport>-->
                        <!--<skipXmlReport>true</skipXmlReport>-->
                        <!--<breakBuildOnSourceIncompatibleModifications>-->
                            <!--true-->
                        <!--</breakBuildOnSourceIncompatibleModifications>-->
                        <!--<overrideCompatibilityChangeParameters>-->
                            <!--<overrideCompatibilityChangeParameter>-->
                                <!--<compatibilityChange>METHOD_NEW_DEFAULT</compatibilityChange>-->
                                <!--<binaryCompatible>true</binaryCompatible>-->
                                <!--<sourceCompatible>true</sourceCompatible>-->
                            <!--</overrideCompatibilityChangeParameter>-->
                            <!--<overrideCompatibilityChangeParameter>-->
                                <!--<compatibilityChange>METHOD_ABSTRACT_NOW_DEFAULT</compatibilityChange>-->
                                <!--<binaryCompatible>true</binaryCompatible>-->
                                <!--<sourceCompatible>true</sourceCompatible>-->
                            <!--</overrideCompatibilityChangeParameter>-->
                        <!--</overrideCompatibilityChangeParameters>-->
                    <!--</parameter>-->
                <!--</configuration>-->
                <!--<executions>-->
                    <!--<execution>-->
                        <!--<phase>verify</phase>-->
                        <!--<goals>-->
                            <!--<goal>cmp</goal>-->
                        <!--</goals>-->
                    <!--</execution>-->
                <!--</executions>-->
            <!--</plugin>-->
            <plugin>
                <artifactId>maven-deploy-plugin</artifactId>
                <executions>
                    <execution>
                        <id>default-deploy</id>
                        <phase>deploy</phase>
                        <goals>
                            <goal>deploy</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <version>2.5.3</version>
                <configuration>
                    <localCheckout>true</localCheckout>
                    <pushChanges>false</pushChanges>
                    <mavenExecutorId>forked-path</mavenExecutorId>
                    <arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments>
                </configuration>
                <dependencies>
                    <dependency>
                        <groupId>org.apache.maven.scm</groupId>
                        <artifactId>maven-scm-provider-gitexe</artifactId>
                        <version>1.9.5</version>
                    </dependency>
                </dependencies>
            </plugin>
            <plugin>
                <groupId>org.sonatype.plugins</groupId>
                <artifactId>nexus-staging-maven-plugin</artifactId>
                <version>1.6.7</version>
                <extensions>true</extensions>
                <configuration>
                    <serverId>ossrh</serverId>
                    <nexusUrl>https://oss.sonatype.org/</nexusUrl>
                    <autoReleaseAfterClose>true</autoReleaseAfterClose>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>3.0.1</version>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>3.0.1</version>
                <executions>
                    <execution>
                        <id>attach-javadocs</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
    <dependencies>
        <dependency>
            <groupId>org.json</groupId>
            <artifactId>json</artifactId>
            <version>20180130</version>
        </dependency>
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <version>22.0</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.12</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>commons-validator</groupId>
            <artifactId>commons-validator</artifactId>
            <version>1.6</version>
            <exclusions>
                <exclusion>
                    <artifactId>commons-beanutils</artifactId>
                    <groupId>commons-beanutils</groupId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>commons-beanutils</groupId>
            <artifactId>commons-beanutils</artifactId>
            <version>1.9.3</version>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <version>1.10.19</version>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <artifactId>hamcrest-core</artifactId>
                    <groupId>org.hamcrest</groupId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>nl.jqno.equalsverifier</groupId>
            <artifactId>equalsverifier</artifactId>
            <version>3.0.3</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>pl.pragmatists</groupId>
            <artifactId>JUnitParams</artifactId>
            <version>1.1.0</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.damnhandy</groupId>
            <artifactId>handy-uri-templates</artifactId>
            <version>2.1.6</version>
        </dependency>
        <dependency>
            <groupId>com.google.re2j</groupId>
            <artifactId>re2j</artifactId>
            <version>1.1</version>
        </dependency>
    </dependencies>

    <profiles>
        <profile>
            <id>release-sign-artifacts</id>
            <activation>
                <property>
                    <name>performRelease</name>
                    <value>true</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <version>1.6</version>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>
