<?xml version="1.0" encoding="UTF-8"?>
<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>

    <parent>
        <groupId>org.daisy.pipeline.modules</groupId>
        <artifactId>modules-parent</artifactId>
        <version>1.13.7</version>
        <relativePath>../../parent/</relativePath>
    </parent>

    <artifactId>css-utils</artifactId>
    <version>2.1.0</version>
    <packaging>bundle</packaging>

    <name>DAISY Pipeline 2 module :: CSS Utils</name>

    <properties>
        <expose-services>
            org.daisy.pipeline.modules.impl.Module_css_utils,
            org.daisy.pipeline.css.calabash.impl.CssCascadeStep$Provider
        </expose-services>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.daisy.pipeline</groupId>
            <artifactId>common-utils</artifactId>
        </dependency>
        <dependency>
            <groupId>org.daisy.libs</groupId>
            <artifactId>io.bit3.jsass</artifactId>
        </dependency>
        <dependency>
            <groupId>org.daisy.libs</groupId>
            <artifactId>com.xmlcalabash</artifactId>
        </dependency>
        <dependency>
            <groupId>org.daisy.pipeline</groupId>
            <artifactId>calabash-adapter</artifactId>
        </dependency>
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
        </dependency>
        <dependency>
            <groupId>org.daisy.libs</groupId>
            <artifactId>saxon-he</artifactId>
        </dependency>
        <dependency>
            <groupId>org.daisy.pipeline</groupId>
            <artifactId>saxon-adapter</artifactId>
        </dependency>
        <dependency>
            <groupId>org.daisy.libs</groupId>
            <artifactId>jstyleparser</artifactId>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
        </dependency>
        <!--
            test dependencies
        -->
        <dependency>
            <groupId>org.daisy.maven</groupId>
            <artifactId>xproc-engine-daisy-pipeline</artifactId>
            <scope>test</scope>
        </dependency>
        <!--
            for MessageStorage, needed by JobMonitorFactory
            FIXME: make optional
        -->
        <dependency>
            <groupId>org.daisy.pipeline</groupId>
            <artifactId>framework-volatile</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.daisy.pipeline.build</groupId>
                <artifactId>modules-build-helper</artifactId>
                <executions>
                    <execution>
                        <id>package-list</id>
                        <phase>prepare-package</phase>
                        <goals>
                            <goal>dependencies-package-list</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${project.build.directory}/dependencies-package-list/</outputDirectory>
                            <includes>
                                org.daisy.pipeline.*,
                                org.daisy.common.*
                            </includes>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.daisy.maven</groupId>
                <artifactId>xproc-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>test</phase>
                        <goals>
                            <goal>xprocspec</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <executions>
                    <execution>
                        <id>attach-javadocs</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                        <configuration>
                            <offlineLinks>
                                <offlineLink>
                                    <url>http://daisy.github.io/pipeline/api/</url>
                                    <location>${project.build.directory}/dependencies-package-list/</location>
                                </offlineLink>
                            </offlineLinks>
                            <links>
                                <link>https://google.github.io/guava/releases/15.0/api/docs</link>
                            </links>
                            <excludePackageNames>*.impl:*.impl.*</excludePackageNames>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

</project>
