<?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>com.vertispan.j2cl</groupId>
        <artifactId>j2cl-parent</artifactId>
        <version>0.10.0-3c97afeac</version>
    </parent>
    <artifactId>javac-bootstrap-classpath</artifactId>
    <packaging>pom</packaging>

    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <version>3.0.0</version>
                <executions>
                    <execution>
                        <id>attach-artifacts</id>
                        <phase>package</phase>
                        <goals>
                            <goal>attach-artifact</goal>
                        </goals>
                        <configuration>
                            <artifacts>
                                <artifact>
                                    <file>../../bazel-bin/jre/java/libjre_bootclasspath.jar</file>
                                    <type>jar</type>
                                </artifact>
                                <artifact>
                                    <file>../../bazel-bin/jre/java/libjre_bootclasspath-src.jar</file>
                                    <type>jar</type>
                                    <classifier>sources</classifier>
                                </artifact>
                                <!-- Still imported from gwtproject, and pretty sparse docs anyway -->
<!--                                <artifact>-->
<!--                                    <file>../../bazel-bin/jre/java/jre_bootclasspath-javadoc.jar</file>-->
<!--                                    <type>jar</type>-->
<!--                                    <classifier>javadoc</classifier>-->
<!--                                </artifact>-->
                            </artifacts>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <!-- Create an empty javadoc jar for now -->
            <plugin>
                <artifactId>maven-jar-plugin</artifactId>
                <version>3.1.0</version>
                <executions>
                    <execution>
                        <id>javadoc-jar</id>
                        <phase>package</phase>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                        <configuration>
                            <classifier>javadoc</classifier>
                        </configuration>
                    </execution>
                    <execution>
                        <id>sources-jar</id>
                        <phase>package</phase>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                        <configuration>
                            <classifier>sources</classifier>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
    <dependencies>
        <!-- may not be required here, but has to be lumped in to the j2cl bytecode classpath -->
        <dependency>
            <groupId>com.vertispan.j2cl</groupId>
            <artifactId>gwt-internal-annotations</artifactId>
            <version>${project.version}</version>
        </dependency>
    </dependencies>
</project>