|
18 | 18 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
19 | 19 | <modelVersion>4.0.0</modelVersion> |
20 | 20 |
|
21 | | - <parent> |
22 | | - <groupId>org.sonatype.oss</groupId> |
23 | | - <artifactId>oss-parent</artifactId> |
24 | | - <version>7</version> |
25 | | - </parent> |
26 | | - |
27 | 21 | <groupId>com.google.auto</groupId> |
28 | 22 | <artifactId>auto-common</artifactId> |
29 | 23 | <version>HEAD-SNAPSHOT</version> |
30 | 24 | <name>Auto Common Libraries</name> |
31 | 25 | <description> |
32 | 26 | Common utilities for creating annotation processors. |
33 | 27 | </description> |
34 | | - <url>https://github.com/google/auto/tree/master/common</url> |
| 28 | + <url>https://github.com/google/auto/tree/main/common</url> |
35 | 29 |
|
36 | 30 | <properties> |
37 | 31 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
38 | 32 | <java.version>1.8</java.version> |
39 | | - <guava.version>31.0.1-jre</guava.version> |
40 | | - <truth.version>1.1.3</truth.version> |
| 33 | + <guava.version>33.4.8-jre</guava.version> |
| 34 | + <truth.version>1.4.4</truth.version> |
41 | 35 | </properties> |
42 | 36 |
|
43 | 37 | <scm> |
|
64 | 58 | <url>http://www.google.com</url> |
65 | 59 | </organization> |
66 | 60 |
|
| 61 | + <distributionManagement> |
| 62 | + <snapshotRepository> |
| 63 | + <id>sonatype-nexus-snapshots</id> |
| 64 | + <url>https://central.sonatype.com/repository/maven-snapshots/</url> |
| 65 | + </snapshotRepository> |
| 66 | + </distributionManagement> |
| 67 | + |
67 | 68 | <dependencies> |
68 | 69 | <dependency> |
69 | 70 | <groupId>com.google.guava</groupId> |
70 | 71 | <artifactId>guava</artifactId> |
71 | 72 | <version>${guava.version}</version> |
72 | 73 | </dependency> |
| 74 | + <dependency> |
| 75 | + <groupId>org.jspecify</groupId> |
| 76 | + <artifactId>jspecify</artifactId> |
| 77 | + <version>1.0.0</version> |
| 78 | + </dependency> |
73 | 79 | <dependency> |
74 | 80 | <!-- Used only by GeneratedAnnotationSpecs. |
75 | 81 | If you use JavaPoet, you can use GeneratedAnnotationSpecs. --> |
|
89 | 95 | <dependency> |
90 | 96 | <groupId>com.google.testing.compile</groupId> |
91 | 97 | <artifactId>compile-testing</artifactId> |
92 | | - <version>0.19</version> |
| 98 | + <version>0.21.0</version> |
93 | 99 | <scope>test</scope> |
94 | 100 | </dependency> |
95 | 101 | <dependency> |
|
104 | 110 | <version>${truth.version}</version> |
105 | 111 | <scope>test</scope> |
106 | 112 | </dependency> |
107 | | - <dependency> |
108 | | - <groupId>org.eclipse.jdt</groupId> |
109 | | - <artifactId>ecj</artifactId> |
110 | | - <version>3.25.0</version> |
111 | | - <scope>test</scope> |
112 | | - </dependency> |
113 | 113 | </dependencies> |
114 | 114 |
|
115 | 115 | <build> |
116 | 116 | <plugins> |
117 | 117 | <plugin> |
118 | 118 | <artifactId>maven-compiler-plugin</artifactId> |
119 | | - <version>3.8.1</version> |
| 119 | + <version>3.14.0</version> |
120 | 120 | <configuration> |
121 | 121 | <source>${java.version}</source> |
122 | 122 | <target>${java.version}</target> |
123 | 123 | <compilerArgument>-Xlint:all</compilerArgument> |
124 | 124 | <showWarnings>true</showWarnings> |
125 | 125 | <showDeprecation>true</showDeprecation> |
| 126 | + <testExcludes combine.children="append" /> |
126 | 127 | </configuration> |
127 | | - <dependencies> |
128 | | - <dependency> |
129 | | - <groupId>org.codehaus.plexus</groupId> |
130 | | - <artifactId>plexus-java</artifactId> |
131 | | - <version>1.1.0</version> |
132 | | - </dependency> |
133 | | - </dependencies> |
134 | 128 | </plugin> |
135 | 129 | <plugin> |
136 | 130 | <groupId>org.apache.maven.plugins</groupId> |
137 | 131 | <artifactId>maven-jar-plugin</artifactId> |
138 | | - <version>3.2.0</version> |
| 132 | + <version>3.4.2</version> |
139 | 133 | </plugin> |
140 | 134 | </plugins> |
141 | 135 | </build> |
| 136 | + |
| 137 | + <profiles> |
| 138 | + <profile> |
| 139 | + <id>test-with-ecj</id> |
| 140 | + <activation> |
| 141 | + <jdk>[17,)</jdk> |
| 142 | + </activation> |
| 143 | + <dependencies> |
| 144 | + <!-- test dependencies --> |
| 145 | + <dependency> |
| 146 | + <groupId>org.eclipse.jdt</groupId> |
| 147 | + <artifactId>ecj</artifactId> |
| 148 | + <version>3.42.0</version> |
| 149 | + <scope>test</scope> |
| 150 | + </dependency> |
| 151 | + </dependencies> |
| 152 | + </profile> |
| 153 | + |
| 154 | + <profile> |
| 155 | + <id>test-without-ecj</id> |
| 156 | + <activation> |
| 157 | + <jdk>(,17)</jdk> |
| 158 | + </activation> |
| 159 | + <build> |
| 160 | + <plugins> |
| 161 | + <plugin> |
| 162 | + <artifactId>maven-compiler-plugin</artifactId> |
| 163 | + <configuration> |
| 164 | + <testExcludes> |
| 165 | + <exclude>**/OverridesTest.java</exclude> |
| 166 | + </testExcludes> |
| 167 | + </configuration> |
| 168 | + </plugin> |
| 169 | + </plugins> |
| 170 | + </build> |
| 171 | + </profile> |
| 172 | + |
| 173 | + <profile> |
| 174 | + <id>sonatype-oss-release</id> |
| 175 | + <build> |
| 176 | + <plugins> |
| 177 | + <plugin> |
| 178 | + <artifactId>maven-source-plugin</artifactId> |
| 179 | + <version>3.3.1</version> |
| 180 | + <executions> |
| 181 | + <execution> |
| 182 | + <id>attach-sources</id> |
| 183 | + <goals> |
| 184 | + <goal>jar-no-fork</goal> |
| 185 | + </goals> |
| 186 | + </execution> |
| 187 | + </executions> |
| 188 | + </plugin> |
| 189 | + <plugin> |
| 190 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 191 | + <version>3.11.2</version> |
| 192 | + <executions> |
| 193 | + <execution> |
| 194 | + <id>attach-javadocs</id> |
| 195 | + <goals> |
| 196 | + <goal>jar</goal> |
| 197 | + </goals> |
| 198 | + </execution> |
| 199 | + </executions> |
| 200 | + </plugin> |
| 201 | + <plugin> |
| 202 | + <artifactId>maven-gpg-plugin</artifactId> |
| 203 | + <version>3.2.8</version> |
| 204 | + <executions> |
| 205 | + <execution> |
| 206 | + <id>sign-artifacts</id> |
| 207 | + <phase>verify</phase> |
| 208 | + <goals> |
| 209 | + <goal>sign</goal> |
| 210 | + </goals> |
| 211 | + </execution> |
| 212 | + </executions> |
| 213 | + </plugin> |
| 214 | + <plugin> |
| 215 | + <groupId>org.sonatype.central</groupId> |
| 216 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 217 | + <version>0.8.0</version> |
| 218 | + <extensions>true</extensions> |
| 219 | + </plugin> |
| 220 | + </plugins> |
| 221 | + </build> |
| 222 | + </profile> |
| 223 | + </profiles> |
142 | 224 | </project> |
0 commit comments