<?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/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>net.sf.proguard</groupId>
        <artifactId>proguard-parent</artifactId>
        <version>5.1</version>
        <relativePath>../pom.xml</relativePath>
    </parent>
    <artifactId>proguard-base</artifactId>
    <name>[${project.groupId}] ${project.artifactId}</name>

    <build>
        <sourceDirectory>../../../src</sourceDirectory>
        <plugins>
            <plugin>
                <artifactId>maven-source-plugin</artifactId>
                <configuration>
                    <excludes>
                        <exclude>proguard/gui/**</exclude>
                        <exclude>proguard/ant/**</exclude>
                        <exclude>proguard/gradle/**</exclude>
                        <exclude>proguard/wtk/**</exclude>
                        <exclude>proguard/retrace/**</exclude>
                    </excludes>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <excludes>
                        <exclude>proguard/gui/**</exclude>
                        <exclude>proguard/ant/**</exclude>
                        <exclude>proguard/gradle/**</exclude>
                        <exclude>proguard/wtk/**</exclude>
                        <exclude>proguard/retrace/**</exclude>
                    </excludes>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-javadoc-plugin</artifactId>
                <configuration>
                    <excludePackageNames>proguard.gui:proguard.ant:proguard.gradle:proguard.wtk:proguard.retrace</excludePackageNames>
                    <!-- sourceFileExcludes doesn't seem to work, so we're using excludePackageNames -->
                    <sourceFileExcludes>
                        <sourceFileExclude>proguard/gui/**</sourceFileExclude>
                        <sourceFileExclude>proguard/ant/**</sourceFileExclude>
                        <sourceFileExclude>proguard/gradle/**</sourceFileExclude>
                        <sourceFileExclude>proguard/wtk/**</sourceFileExclude>
                        <sourceFileExclude>proguard/retrace/**</sourceFileExclude>
                    </sourceFileExcludes>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-jar-plugin</artifactId>
                <configuration>
                    <archive>
                        <manifest>
                            <mainClass>proguard.ProGuard</mainClass>
                        </manifest>
                    </archive>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>