<?xml version="1.0"?>
<!--                                                           -->
<!-- Maven POM file for packaging and testing the              -->
<!-- KalturaClient Java library.                               -->
<!--                                                           -->
<!-- Contributed by:  Mark Ratliff, ratliff@princeton.edu      -->
<!--                                                           -->

<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">

  <!-- Define the GAV coordinate for the project -->
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.kaltura</groupId>
  <artifactId>kalturaApiClient</artifactId>
    <version>18.12.0</version>

  <!-- Project description -->
  <name>KalturaClient Java Library</name>
  <description>
    KalturaClient is a library of Java classes that can be used to interact 
    with the Kaltura REST API.  More information about the REST API can be
    found at http://corp.kaltura.com/Products/Kaltura-API  Many of the Java classes
    in this library are auto-generated from a schema that defines the objects that
    are used to interect with the API.  The current schema can be found at
    http://www.kaltura.com/api_v3/api_schema.php
  </description>
  <url>http://github.com/kaltura/KalturaGeneratedAPIClientsJava</url>
  
  <!-- Define the license under which this software can be used. -->
  <licenses>
    <license>
      <name>GNU Affero General Public License, Version 3.0</name>
      <url>https://www.gnu.org/licenses/agpl-3.0.html</url>
      <distribution>repo</distribution>
      <comments />
    </license>
  </licenses>
  <distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
  
    <!-- Developers who contribute to this software. -->
    <developers>
        <developer>
            <name>Jess Portnoy</name>
            <email>jess.portnoy@kaltura.com</email>
            <organization>Kaltura</organization>
            <organizationUrl>http://www.kaltura.com</organizationUrl>
        </developer>
        <developer>
            <name>Tehila Rozin</name>
            <email>Tehila.Rozin@kaltura.com</email>
            <organization>Kaltura</organization>
            <organizationUrl>http://www.kaltura.com</organizationUrl>
        </developer>
        <developer>
            <name>Johnathan Amit-Kanarek</name>
            <email>Jonathan.Kanarek@kaltura.com</email>
            <organization>Kaltura</organization>
            <organizationUrl>http://www.kaltura.com</organizationUrl>
        </developer>
    </developers>
  
  <scm>
    <connection>scm:git:git@github.com:kaltura/KalturaGeneratedAPIClientsJava.git</connection>
    <developerConnection>scm:git:git@github.com:kaltura/KalturaGeneratedAPIClientsJava.git</developerConnection>
    <url>scm:git:git@github.com:kaltura/KalturaGeneratedAPIClientsJava.git</url>
    <tag>kalturaApiClient-18.12.0</tag>
  </scm>

  <!-- Libraries on which the KalturaClient depends -->
  <dependencies>
        <dependency>
            <groupId>commons-codec</groupId>
            <artifactId>commons-codec</artifactId>
            <version>1.15</version>
        </dependency>

        <dependency>
            <groupId>org.json</groupId>
            <artifactId>json</artifactId>
            <version>20180813</version>
        </dependency>

        <!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
        <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
            <version>2.9.1</version>
        </dependency>


	<!-- https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-stdlib -->
	<dependency>
	    <groupId>org.jetbrains.kotlin</groupId>
	    <artifactId>kotlin-stdlib</artifactId>
	    <version>1.7.10</version>
	</dependency>

        <!-- https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp -->
        <dependency>
            <groupId>com.squareup.okhttp3</groupId>
            <artifactId>okhttp</artifactId>
            <version>4.10.0</version>
        </dependency>

        <dependency>
            <groupId>com.squareup.okio</groupId>
            <artifactId>okio</artifactId>
            <version>2.2.2</version>
        </dependency>

	<dependency>
	    <groupId>org.apache.logging.log4j</groupId>
	    <artifactId>log4j-api</artifactId>
	    <version>2.18.0</version>
	</dependency>
	<dependency>
	    <groupId>org.apache.logging.log4j</groupId>
	    <artifactId>log4j-core</artifactId>
	    <version>2.18.0</version>
	</dependency>
        <!-- JUnit for testing -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.13.2</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit-dep</artifactId>
            <version>4.7</version>
            <scope>test</scope>
        </dependency>
  </dependencies>

  <!-- Build, test, and package the class files, source files, and javadoc files. -->
  <!--profiles>
    <profile>
    <id>java8-doclint-disabled</id>
    <activation>
      <jdk>[1.8,)</jdk>
    </activation>
    <properties>
      <javadoc.opts>-Xdoclint:none</javadoc.opts>
    </properties>
</profile>
</profiles-->
  <build>
    <plugins>

      <!-- Use java version 1.6 to compile the code -->
      <!-- This may not be a strict requirement, so may want to loosen in future -->
      <plugin>
      	<groupId>org.sonatype.plugins</groupId>
      	<artifactId>nexus-staging-maven-plugin</artifactId>
        <version>1.6.3</version>
        <extensions>true</extensions>
        <configuration>
       		<serverId>ossrh</serverId>
        	<nexusUrl>https://oss.sonatype.org/</nexusUrl>
        	<autoReleaseAfterClose>true</autoReleaseAfterClose>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3.2</version>
        <configuration>
          <source>1.7</source>
          <target>1.7</target>
        </configuration>
      </plugin>

      <!-- Run the test suite defined in KalturaTestSuite.java -->
      <!-- Build the JAR file without running tests with:  mvn -Dmaven.test.skip=true package -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.18.1</version>
        <configuration>
          <includes>
            <include>**/KalturaTestSuite.java</include>
          </includes>
        </configuration>
      </plugin>

      <!-- Build JAR file containing source files. -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <version>2.2.1</version>
        <executions>
          <execution>
            <id>attach-sources</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

      <!-- Build JAR file containing JavaDoc files. -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.9.1</version>
        <executions>
          <execution>
            <id>attach-javadocs</id>
            <goals>
              <goal>jar</goal>
            </goals>
	    <configuration>
                    <additionalparam>${javadoc.opts}</additionalparam>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-gpg-plugin</artifactId>
	<version>1.5</version>
	<executions>
	    <execution>
		<id>sign-artifacts</id>
		<phase>verify</phase>
		<goals>
		    <goal>sign</goal>
		</goals>
	    </execution>
	</executions>
      </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>3.1.0</version>
            <configuration>
              <source>8</source>
            </configuration>
          </plugin>
    </plugins>
  </build>

</project>
