<?xml version="1.0" encoding="UTF-8"?>
<project
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://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>

    <parent>
        <groupId>org.jetbrains.kotlin</groupId>
        <artifactId>kotlin-project</artifactId>
        <version>1.0-SNAPSHOT</version>
        <relativePath>../../pom.xml</relativePath>
    </parent>

    <artifactId>jsdoc</artifactId>

    <properties>
        <js.lib.dir>${basedir}/../../../js/js.libraries</js.lib.dir>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.jetbrains.kotlin</groupId>
            <artifactId>kotlin-stdlib</artifactId>
            <version>${project.version}</version>
        </dependency>
      <dependency>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
          <version>${junit-version}</version>
      </dependency>
    </dependencies>

    <build>
      <plugins>
          <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-deploy-plugin</artifactId>
                <configuration>
                  <skip>true</skip>
                </configuration>
          </plugin>

          <plugin>
              <groupId>org.jetbrains.kotlin</groupId>
              <artifactId>kdoc-maven-plugin</artifactId>
              <version>${project.version}</version>
              <configuration>
                  <sources>
                      <source>${js.lib.dir}/src/core</source>
                      <source>${js.lib.dir}/src/html5</source>
                      <source>${js.lib.dir}/src/jquery</source>
                      <source>${js.lib.dir}/src/raphael</source>
                  </sources>
                  <title>Kotlin JavaScript API (${project.version})</title>
                  <ignorePackages>
                      <ignorePackage>com</ignorePackage>
                      <ignorePackage>sun</ignorePackage>
                      <ignorePackage>java</ignorePackage>
                      <ignorePackage>junit</ignorePackage>
                      <ignorePackage>org</ignorePackage>
                  </ignorePackages>

              </configuration>

              <executions>
                  <execution>
                      <id>apidoc</id>
                      <phase>install</phase>
                      <goals>
                          <goal>apidoc</goal>
                      </goals>
                  </execution>
              </executions>
          </plugin>
      </plugins>
    </build>
</project>
