<?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>tech.easyflow</groupId>
        <artifactId>easyflow-modules</artifactId>
        <version>${revision}</version>
    </parent>

    <name>easyflow-module-autoconfig</name>
    <artifactId>easyflow-module-autoconfig</artifactId>

    <dependencies>
        <dependency>
            <groupId>tech.easyflow</groupId>
            <artifactId>easyflow-common-web</artifactId>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>${junit.version}</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <profiles>
        <profile>
            <id>release-obfuscation</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.github.wvengen</groupId>
                        <artifactId>proguard-maven-plugin</artifactId>
                        <version>${proguard.maven.plugin.version}</version>
                        <dependencies>
                            <dependency>
                                <groupId>com.guardsquare</groupId>
                                <artifactId>proguard-base</artifactId>
                                <version>${proguard.version}</version>
                            </dependency>
                        </dependencies>
                        <executions>
                            <execution>
                                <id>release-obfuscation</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>proguard</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <proguardVersion>${proguard.version}</proguardVersion>
                            <proguardInclude>${maven.multiModuleProjectDirectory}/config/proguard/easyflow-module-autoconfig.pro</proguardInclude>
                            <mappingFileName>proguard-map-${project.artifactId}.txt</mappingFileName>
                            <seedFileName>proguard-seed-${project.artifactId}.txt</seedFileName>
                            <includeDependency>true</includeDependency>
                            <includeDependencyInjar>false</includeDependencyInjar>
                            <attach>false</attach>
                            <attachMap>false</attachMap>
                            <appendClassifier>false</appendClassifier>
                            <addMavenDescriptor>false</addMavenDescriptor>
                            <addManifest>true</addManifest>
                            <putLibraryJarsInTempDir>true</putLibraryJarsInTempDir>
                            <generateTemporaryConfigurationFile>true</generateTemporaryConfigurationFile>
                            <bindToMavenLogging>true</bindToMavenLogging>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>
