<?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>
    <groupId>org.walkmod</groupId>
    <artifactId>javalang-compiler</artifactId>
    <version>2.3.7</version>
    <url>https://github.com/rpau/javalang-compiler</url>
    <name>javalang-compiler</name>
    <licenses>
        <license>
            <name>GNU General Public License (GPL v.3)</name>
            <url>http://www.gnu.org/licenses/gpl.txt</url>
        </license>
    </licenses>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.build.resourceEncoding>UTF-8</project.build.resourceEncoding>
        <maven.compile.encoding>UTF-8</maven.compile.encoding>
    </properties>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <executions>
                    <execution>
                        <id>attach-javadocs</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <!-- 
                https://github.com/LendingClub/gradle-maven-plugin
                plugin is used for integration of spotless java formatter
                (https://github.com/diffplug/spotless)
                formatting rules: src/config/eclipse/formatter/java.xml, formatting.gradle
                format with: mvn org.fortasoft:gradle-maven-plugin:invoke
             -->
            <plugin>
                <groupId>org.fortasoft</groupId>
                <artifactId>gradle-maven-plugin</artifactId>
                <version>1.0.8</version>
                <configuration>
                    <tasks>
                        <task>spotlessJavaApply</task>
                    </tasks>
                    <gradleVersion>3.5</gradleVersion>
                    <args>
                        <arg>-b</arg>
                        <arg>formatter.gradle</arg>
                    </args>
                </configuration>
                <executions>
                    <execution>
                        <!-- You can bind this to any phase you like -->
                        <phase>spotless</phase>
                        <goals>
                            <!-- goal must be "invoke" -->
                            <goal>invoke</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
    <dependencies>
        <dependency>
            <groupId>org.walkmod</groupId>
            <artifactId>javalang</artifactId>
            <version>[4.1.0, 5.0.0)</version>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.12</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.16</version>
        </dependency>
        <dependency>
            <groupId>org.assertj</groupId>
            <artifactId>assertj-core</artifactId>
            <version>2.6.0</version>
            <scope>test</scope>
        </dependency>
    </dependencies>
    <scm>
        <url>https://github.com/rpau/javalang-compiler.git</url>
        <connection>https://github.com/rpau/javalang-compiler.git</connection>
    </scm>
    <developers>
        <developer>
            <id>rpau</id>
            <name>rpau</name>
            <email>raquelpau@gmail.com</email>
        </developer>
        <developer>
            <id>acoroleu</id>
            <name>acoroleu</name>
            <email>acoroleu@gmail.com</email>
        </developer>
    </developers>
    <description>Library of compiler components to processs Java code.</description>
</project>
