<?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>de.plushnikov.lombok-intellij-plugin</groupId>
  <artifactId>parent</artifactId>
  <version>0.2</version>
  <packaging>pom</packaging>

  <name>Parent for IntelliJ IDEA Lombok plugin</name>
  <description>A parent pom for IntelliJ Idea Lombok plugin</description>
  <url>http://code.google.com/p/lombok-intellij-plugin/</url>

  <scm>
    <connection>scm:svn:http://lombok-intellij-plugin.googlecode.com/svn/tags/parent-0.2</connection>
    <developerConnection>scm:svn:https://lombok-intellij-plugin.googlecode.com/svn/tags/parent-0.2</developerConnection>
    <url>http://code.google.com/p/lombok-intellij-plugin/source/browse/tags/parent-0.2</url>
  </scm>
  <issueManagement>
    <system>Google Code</system>
    <url>http://code.google.com/p/lombok-intellij-plugin/issues/list</url>
  </issueManagement>
  <organization>
    <name>Michail Plushnikov</name>
    <url>http://code.google.com/p/lombok-intellij-plugin</url>
  </organization>
  <licenses>
    <license>
      <name>New BSD License</name>
      <url>http://www.opensource.org/licenses/bsd-license.php</url>
    </license>
  </licenses>
  <developers>
    <developer>
      <id>1</id>
      <name>Michail Plushnikov</name>
      <email>plushnikov@web.de</email>
      <roles>
        <role>Founder</role>
        <role>Developer</role>
      </roles>
      <timezone>1</timezone>
    </developer>
  </developers>

  <profiles>
    <profile>
      <id>mpl</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <properties>
        <idea.version>10.5.2</idea.version>
        <idea.home>C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition ${idea.version}</idea.home>
      </properties>
    </profile>
    <profile>
      <id>plugin-release</id>
      <activation>
        <property>
          <name>performRelease</name>
          <value>true</value>
        </property>
      </activation>
      <build>
        <plugins>
          <plugin>
            <!-- Automatically attach sources to build artifact as artifact-version-sources.jar and deploy to local repository -->
            <artifactId>maven-source-plugin</artifactId>
            <inherited>true</inherited>
            <executions>
              <execution>
                <id>attach-sources</id>
                <phase>verify</phase>
                <goals>
                  <goal>jar-no-fork</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <inherited>true</inherited>
            <executions>
              <execution>
                <id>attach-javadocs</id>
                <goals>
                  <goal>jar</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

  <properties>
    <!-- maven.build.timestamp since 2.1.0-M1 -->
    <maven.min.version>2.1.0</maven.min.version>
    <!-- Idea requires JDK 1.6 -->
    <jdk.min.version>1.6</jdk.min.version>

    <!--The build numbers of recent IDEA versions are:-->
    <!--8.0 - 80.00-->
    <!--9.0 - 93.13-->
    <!--9.0.1 - 93.94-->
    <!--9.0.2 - 95.66-->
    <!--9.0.3 - 95.429-->
    <!--9.0.4 - 95.627-->
    <!--10.0 - 99.18-->
    <!--10.0.1 - 99.32-->
    <!--10.0.2 - 103.72-->
    <!--10.0.3 - 103.255-->
    <!--10.5 - 107.105-->
    <!--10.5.1 - 107.322-->
    <idea.build>99.18</idea.build>

    <downloadSources>true</downloadSources>
    <createChecksum>true</createChecksum>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <maven.build.timestamp.format>yyyyMMddHHmm</maven.build.timestamp.format>

    <!-- Workaround for http://jira.codehaus.org/browse/MRESOURCES-99 -->
    <plugin.timestamp>${maven.build.timestamp}</plugin.timestamp>
    <plugin.vendor>${project.organization.name}</plugin.vendor>
    <plugin.vendor.url>${project.organization.url}</plugin.vendor.url>
    <plugin.vendor.email>michail@plushnikov.de</plugin.vendor.email>
  </properties>

  <prerequisites>
    <maven>${maven.min.version}</maven>
  </prerequisites>

  <modules>
    <module>lombok-plugin</module>
    <module>processor-api</module>
    <module>processor-core</module>
  </modules>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.projectlombok</groupId>
        <artifactId>lombok</artifactId>
        <version>0.10</version>
        <scope>provided</scope>
      </dependency>

      <!-- === IntelliJ IDEA === -->
      <dependency>
        <groupId>com.intellij.idea</groupId>
        <artifactId>openapi</artifactId>
        <version>${idea.version}</version>
        <scope>system</scope>
        <systemPath>${idea.home}/lib/openapi.jar</systemPath>
      </dependency>
      <dependency>
        <groupId>com.intellij.idea</groupId>
        <artifactId>util</artifactId>
        <version>${idea.version}</version>
        <scope>system</scope>
        <systemPath>${idea.home}/lib/util.jar</systemPath>
      </dependency>

      <dependency>
        <groupId>com.intellij.idea</groupId>
        <artifactId>extensions</artifactId>
        <version>${idea.version}</version>
        <scope>system</scope>
        <systemPath>${idea.home}/lib/extensions.jar</systemPath>
      </dependency>

      <dependency>
        <groupId>com.intellij.idea</groupId>
        <artifactId>annotations</artifactId>
        <version>${idea.version}</version>
        <scope>system</scope>
        <systemPath>${idea.home}/lib/annotations.jar</systemPath>
      </dependency>

      <dependency>
        <groupId>com.intellij.idea</groupId>
        <artifactId>idea</artifactId>
        <version>${idea.version}</version>
        <scope>system</scope>
        <systemPath>${idea.home}/lib/idea.jar</systemPath>
      </dependency>
      <dependency>
        <groupId>com.intellij.idea</groupId>
        <artifactId>bootstrap</artifactId>
        <version>${idea.version}</version>
        <scope>system</scope>
        <systemPath>${idea.home}/lib/bootstrap.jar</systemPath>
      </dependency>

      <dependency>
        <groupId>gnu.trove</groupId>
        <artifactId>trove</artifactId>
        <version>${idea.version}</version>
        <scope>system</scope>
        <systemPath>${idea.home}/lib/trove4j.jar</systemPath>
      </dependency>
      <dependency>
        <groupId>org.picocontainer</groupId>
        <artifactId>picocontainer</artifactId>
        <version>${idea.version}</version>
        <scope>system</scope>
        <systemPath>${idea.home}/lib/picocontainer.jar</systemPath>
      </dependency>

      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.8.2</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>1.2.16</version>
        <scope>test</scope>
      </dependency>

      <dependency>
        <groupId>org.jdom</groupId>
        <artifactId>jdom</artifactId>
        <version>${idea.version}</version>
        <scope>system</scope>
        <systemPath>${idea.home}/lib/jdom.jar</systemPath>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>2.3.2</version>
          <configuration>
            <source>1.6</source>
            <target>1.6</target>
            <compilerVersion>1.6</compilerVersion>
            <showDeprecation>true</showDeprecation>
            <showWarnings>true</showWarnings>
            <fork>true</fork>
            <optimize>true</optimize>
            <debug>false</debug>
          </configuration>
        </plugin>
        <plugin>
          <artifactId>maven-source-plugin</artifactId>
          <version>2.1.2</version>
          <configuration>
            <includePom>true</includePom>
          </configuration>
        </plugin>
        <plugin>
          <artifactId>maven-javadoc-plugin</artifactId>
          <version>2.8</version>
        </plugin>
        <plugin>
          <artifactId>maven-assembly-plugin</artifactId>
          <version>2.2.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-release-plugin</artifactId>
          <version>2.2.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-gpg-plugin</artifactId>
          <version>1.4</version>
        </plugin>
        <plugin>
          <groupId>org.projectlombok</groupId>
          <artifactId>lombok-maven-plugin</artifactId>
          <version>0.10.0.2</version>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>

  <distributionManagement>
    <repository>
      <id>Sonatype-releases</id>
      <name>Sonatype Staging Repository</name>
      <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
      <uniqueVersion>false</uniqueVersion>
    </repository>
    <snapshotRepository>
      <id>Sonatype-snapshots</id>
      <name>Sonatype Snapshot Repository</name>
      <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
    </snapshotRepository>
  </distributionManagement>
</project>
