<?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>com.google.protobuf.compatibility</groupId>
    <artifactId>compatibility-test-suite</artifactId>
    <version>2.5.0</version>
    <relativePath>..</relativePath>
  </parent>

  <groupId>com.google.protobuf.compatibility</groupId>
  <artifactId>compatibility-protos</artifactId>
  <version>2.5.0</version>

  <name>Protos for Compatibility test</name>

  <dependencies>
    <dependency>
      <groupId>com.google.protobuf</groupId>
      <artifactId>protobuf-java</artifactId>
      <version>${protos.protobuf.version}</version>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.6.0</version>
        <configuration>
          <source>1.6</source>
          <target>1.6</target>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <id>generate-sources</id>
            <phase>generate-sources</phase>
            <configuration>
              <tasks>
                <mkdir dir="target/generated-sources" />
                <exec executable="${protos.protoc.path}">
                  <arg value="--java_out=target/generated-sources" />
                  <arg value="--proto_path=src/proto" />
                  <arg value="src/proto/google/protobuf/unittest_custom_options.proto" />
                  <arg value="src/proto/google/protobuf/unittest_enormous_descriptor.proto" />
                  <arg value="src/proto/google/protobuf/unittest_import.proto" />
                  <arg value="src/proto/google/protobuf/unittest_import_public.proto" />
                  <arg value="src/proto/google/protobuf/unittest_mset.proto" />
                  <arg value="src/proto/google/protobuf/unittest_no_generic_services.proto" />
                  <arg value="src/proto/com/google/protobuf/nested_builders_test.proto" />
                  <arg value="src/proto/com/google/protobuf/nested_extension.proto" />
                  <arg value="src/proto/com/google/protobuf/non_nested_extension.proto" />
                  <arg value="src/proto/com/google/protobuf/test_bad_identifiers.proto" />
                </exec>
              </tasks>
              <sourceRoot>target/generated-sources</sourceRoot>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>
