aboutsummaryrefslogtreecommitdiffhomepage
path: root/java/compatibility_tests/v2.5.0/protos/pom.xml
blob: a22e91ed1d61386ed98a978ca3afd4535df2fe0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?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>