<!--
  ~ Copyright 2016 Red Hat, Inc. and/or its affiliates
  ~ and other contributors as indicated by the @author tags.
  ~
  ~ 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/maven-v4_0_0.xsd">

<!--     <parent>
        <artifactId>keycloak-examples-providers-parent</artifactId>
        <groupId>org.keycloak</groupId>
        <version>4.5.0.Final-SNAPSHOT</version>
    </parent> -->

    <name>${project.groupId}:${project.artifactId}</name>
    <description>Mantis Software Fork of Keycloak Login Recaptcha Plugin</description>
    <url>https://github.com/mantis-software-company/keycloak-login-recaptcha/</url>
    <modelVersion>4.0.0</modelVersion>
	
    <licenses>
    <license>
        <name>The Apache License, Version 2.0</name>
        <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
    </license>
    </licenses>

    <developers>
        <developer>
            <name>Raptor Group</name>
            <email>unknown@example.com</email>
            <organization>Raptor Group</organization>
            <organizationUrl>https://github.com/raptor-group</organizationUrl>
        </developer>    
        <developer>
            <name>Furkan Kalkan</name>
            <email>furkankalkan@mantis.com.tr</email>
            <organization>Mantis Software Company</organization>
            <organizationUrl>http://www.mantis.com.tr</organizationUrl>
        </developer>
    </developers>

    <scm>
        <connection>scm:git:git://github.com/mantis-software-company/keycloak-login-recaptcha.git</connection>
        <developerConnection>scm:git:ssh://github.com:mantis-software-company/keycloak-login-recaptcha.git</developerConnection>
        <url>http://github.com/mantis-software-company/keycloak-login-recaptcha/tree/master</url>
    </scm>

    <properties>
        <java.version>1.8</java.version>
        <!-- <version.keycloak>15.1.1</version.keycloak> -->
<!--        <version.jboss>3.3.0.Final</version.jboss>-->
<!--        <version.jboss-ejb-api>1.0.0.Final</version.jboss-ejb-api>-->
        <jboss.logging.version>3.4.1.Final</jboss.logging.version>
    </properties>

    <groupId>tr.com.mantis.keycloak</groupId>
    <artifactId>recaptcha-login-provider</artifactId>
    <version>15.0.1</version>
    <packaging>jar</packaging>
    
    <dependencies>
        <dependency>
            <groupId>org.keycloak</groupId>
            <artifactId>keycloak-core</artifactId>
            <version>${project.version}</version>
	        <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.keycloak</groupId>
            <artifactId>keycloak-server-spi</artifactId>
            <version>${project.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.keycloak</groupId>
            <artifactId>keycloak-server-spi-private</artifactId>
            <version>${project.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.jboss.logging</groupId>
            <artifactId>jboss-logging</artifactId>
            <version>${jboss.logging.version}</version>
            <scope>provided</scope>
        </dependency>
		<dependency>
            <groupId>org.keycloak</groupId>
            <artifactId>keycloak-services</artifactId>
            <version>${project.version}</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>

    <build>
        <finalName>recaptcha-login</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.wildfly.plugins</groupId>
                <artifactId>wildfly-maven-plugin</artifactId>
                <configuration>
                    <skip>false</skip>
                </configuration>
            </plugin>
            <plugin>
		<groupId>org.apache.maven.plugins</groupId>
		<artifactId>maven-gpg-plugin</artifactId>
		<version>3.0.1</version>
		<executions>
			<execution>
				<id>sign-artifacts</id>
				<phase>verify</phase>
				<goals>
					<goal>sign</goal>
				</goals>
				<configuration>
              <!-- Prevent gpg from using pinentry programs -->
              <gpgArguments>
                <arg>--pinentry-mode</arg>
                <arg>loopback</arg>
              </gpgArguments>
            </configuration>
			</execution>
		</executions>
	</plugin>
	<plugin>
		<groupId>org.apache.maven.plugins</groupId>
		<artifactId>maven-javadoc-plugin</artifactId>
		<version>3.1.0</version>
		<executions>
			<execution>
				<id>attach-javadocs</id>
				<goals>
					<goal>jar</goal>
				</goals>
			</execution>
		</executions>
	</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-release-plugin</artifactId>
	  <version>3.0.0-M1</version>
	  <configuration>
	    <useReleaseProfile>false</useReleaseProfile>
	    <releaseProfiles>publication,gpg</releaseProfiles>
	    <autoVersionSubmodules>true</autoVersionSubmodules>
	    <tagNameFormat>v@{project.version}</tagNameFormat>
	  </configuration>
	</plugin>
	<plugin>
	  <groupId>org.sonatype.plugins</groupId>
	  <artifactId>nexus-staging-maven-plugin</artifactId>
	  <version>1.6.8</version>
	  <extensions>true</extensions>
	  <configuration>
	    	<serverId>ossrepo</serverId>
		<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
		<autoReleaseAfterClose>true</autoReleaseAfterClose>
	  </configuration>
	</plugin>
        </plugins>
    </build>

<distributionManagement>
		<repository>
			<id>ossrepo</id>
			<name>Release Repository</name>
			<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2</url>
		</repository>
		<snapshotRepository>
			<id>ossrepo</id>
			<name>Snapshot Repository</name>
			<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
		</snapshotRepository>
	</distributionManagement>
</project>
