<?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.docs</groupId>
        <artifactId>docs</artifactId>
        <version>1.0-SNAPSHOT</version>
    </parent>

    <artifactId>jsdoc</artifactId>

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

    <dependencies>
        <dependency>
            <groupId>org.jetbrains.kotlin</groupId>
            <artifactId>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.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>jet</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>
