• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3  Copyright 2014 Google LLC
4
5  Licensed under the Apache License, Version 2.0 (the "License");
6  you may not use this file except in compliance with the License.
7  You may obtain a copy of the License at
8
9       http://www.apache.org/licenses/LICENSE-2.0
10
11  Unless required by applicable law or agreed to in writing, software
12  distributed under the License is distributed on an "AS IS" BASIS,
13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  See the License for the specific language governing permissions and
15  limitations under the License.
16-->
17<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
18  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
19  <modelVersion>4.0.0</modelVersion>
20
21  <parent>
22    <groupId>org.sonatype.oss</groupId>
23    <artifactId>oss-parent</artifactId>
24    <version>7</version>
25  </parent>
26
27  <groupId>com.google.auto</groupId>
28  <artifactId>auto-common</artifactId>
29  <version>HEAD-SNAPSHOT</version>
30  <name>Auto Common Libraries</name>
31  <description>
32    Common utilities for creating annotation processors.
33  </description>
34  <url>https://github.com/google/auto/tree/main/common</url>
35
36  <properties>
37    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
38    <java.version>1.8</java.version>
39    <guava.version>32.1.2-jre</guava.version>
40    <truth.version>1.1.3</truth.version>
41  </properties>
42
43  <scm>
44    <url>http://github.com/google/auto</url>
45    <connection>scm:git:git://github.com/google/auto.git</connection>
46    <developerConnection>scm:git:ssh://git@github.com/google/auto.git</developerConnection>
47    <tag>HEAD</tag>
48  </scm>
49
50  <issueManagement>
51    <system>GitHub Issues</system>
52    <url>http://github.com/google/auto/issues</url>
53  </issueManagement>
54
55  <licenses>
56    <license>
57      <name>Apache 2.0</name>
58      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
59    </license>
60  </licenses>
61
62  <organization>
63    <name>Google LLC</name>
64    <url>http://www.google.com</url>
65  </organization>
66
67  <dependencies>
68    <dependency>
69      <groupId>com.google.guava</groupId>
70      <artifactId>guava</artifactId>
71      <version>${guava.version}</version>
72    </dependency>
73    <dependency>
74      <!-- Used only by GeneratedAnnotationSpecs.
75           If you use JavaPoet, you can use GeneratedAnnotationSpecs. -->
76      <groupId>com.squareup</groupId>
77      <artifactId>javapoet</artifactId>
78      <version>1.13.0</version>
79      <optional>true</optional>
80    </dependency>
81
82    <!-- test dependencies -->
83    <dependency>
84      <groupId>com.google.guava</groupId>
85      <artifactId>guava-testlib</artifactId>
86      <version>${guava.version}</version>
87      <scope>test</scope>
88    </dependency>
89    <dependency>
90      <groupId>com.google.testing.compile</groupId>
91      <artifactId>compile-testing</artifactId>
92      <version>0.19</version>
93      <scope>test</scope>
94    </dependency>
95    <dependency>
96      <groupId>junit</groupId>
97      <artifactId>junit</artifactId>
98      <version>4.13.2</version>
99      <scope>test</scope>
100    </dependency>
101    <dependency>
102      <groupId>com.google.truth</groupId>
103      <artifactId>truth</artifactId>
104      <version>${truth.version}</version>
105      <scope>test</scope>
106    </dependency>
107  </dependencies>
108
109  <build>
110    <plugins>
111      <plugin>
112        <artifactId>maven-compiler-plugin</artifactId>
113        <version>3.11.0</version>
114        <configuration>
115          <source>${java.version}</source>
116          <target>${java.version}</target>
117          <compilerArgument>-Xlint:all</compilerArgument>
118          <showWarnings>true</showWarnings>
119          <showDeprecation>true</showDeprecation>
120          <testExcludes combine.children="append" />
121        </configuration>
122        <dependencies>
123          <dependency>
124            <groupId>org.codehaus.plexus</groupId>
125            <artifactId>plexus-java</artifactId>
126            <version>1.1.2</version>
127          </dependency>
128        </dependencies>
129      </plugin>
130      <plugin>
131        <groupId>org.apache.maven.plugins</groupId>
132        <artifactId>maven-jar-plugin</artifactId>
133        <version>3.3.0</version>
134      </plugin>
135    </plugins>
136  </build>
137
138  <profiles>
139    <profile>
140      <id>test-with-ecj</id>
141      <activation>
142        <jdk>[17,)</jdk>
143      </activation>
144      <dependencies>
145        <!-- test dependencies -->
146        <dependency>
147          <groupId>org.eclipse.jdt</groupId>
148          <artifactId>ecj</artifactId>
149          <version>3.34.0</version>
150          <scope>test</scope>
151        </dependency>
152      </dependencies>
153    </profile>
154
155    <profile>
156      <id>test-without-ecj</id>
157      <activation>
158        <jdk>(,17)</jdk>
159      </activation>
160      <build>
161        <plugins>
162          <plugin>
163            <artifactId>maven-compiler-plugin</artifactId>
164            <configuration>
165              <testExcludes>
166                <exclude>**/OverridesTest.java</exclude>
167              </testExcludes>
168            </configuration>
169          </plugin>
170        </plugins>
171      </build>
172    </profile>
173  </profiles>
174</project>
175