|
145 | 145 | <target>1.8</target> |
146 | 146 | <encoding>UTF-8</encoding> |
147 | 147 | <parameters>true</parameters> |
148 | | - <compilerArgs> |
149 | | - <!-- |
150 | | - Make includes/excludes fully work: |
151 | | - https://issues.apache.org/jira/browse/MCOMPILER-174 |
152 | | -
|
153 | | - (Compare what guava-gwt has to do for maven-javadoc-plugin.) |
154 | | - --> |
155 | | - <arg>-sourcepath</arg> |
156 | | - <arg>doesnotexist</arg> |
| 148 | + <compilerArgs combine.children="override"> |
157 | 149 | <!-- https://errorprone.info/docs/installation#maven --> |
158 | 150 | <arg>-XDcompilePolicy=simple</arg> |
159 | 151 | <arg>--should-stop=ifError=FLOW</arg> |
|
181 | 173 | <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</arg> |
182 | 174 | <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg> |
183 | 175 | <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED</arg> |
| 176 | + <arg>-Xlint:-removal,-options</arg> |
184 | 177 | </compilerArgs> |
185 | 178 | <annotationProcessorPaths> |
186 | 179 | <path> |
|
192 | 185 | <!-- Fork because we need args like add-exports. (But see the TODO above about .mvn/jvm.config.) --> |
193 | 186 | <fork>true</fork> |
194 | 187 | </configuration> |
| 188 | + <executions> |
| 189 | + <execution> |
| 190 | + <id>default-compile</id> |
| 191 | + <configuration> |
| 192 | + <source>1.8</source> |
| 193 | + <target>1.8</target> |
| 194 | + <excludes> |
| 195 | + <exclude>module-info.java</exclude> |
| 196 | + </excludes> |
| 197 | + <compilerArgs> |
| 198 | + <!-- |
| 199 | + Make includes/excludes fully work: |
| 200 | + https://issues.apache.org/jira/browse/MCOMPILER-174 |
| 201 | + (Compare what guava-gwt has to do for maven-javadoc-plugin.) |
| 202 | + --> |
| 203 | + <arg>-sourcepath</arg> |
| 204 | + <arg>doesnotexist</arg> |
| 205 | + </compilerArgs> |
| 206 | + </configuration> |
| 207 | + </execution> |
| 208 | + <execution> |
| 209 | + <id>default-testCompile</id> |
| 210 | + <configuration> |
| 211 | + <compilerArgs> |
| 212 | + <compilerArg>-Xlint:-removal</compilerArg> |
| 213 | + </compilerArgs> |
| 214 | + </configuration> |
| 215 | + </execution> |
| 216 | + </executions> |
195 | 217 | </plugin> |
196 | 218 | <plugin> |
197 | 219 | <artifactId>maven-dependency-plugin</artifactId> |
|
211 | 233 | </plugin> |
212 | 234 | <plugin> |
213 | 235 | <artifactId>maven-jar-plugin</artifactId> |
214 | | - <version>3.2.0</version> |
| 236 | + <version>3.4.0</version> |
| 237 | + <configuration> |
| 238 | + <excludes> |
| 239 | + <!-- The root module (where applicable) is withheld because it is provided at `META-INF/versions/9/`. --> |
| 240 | + <exclude>/module-info.class</exclude> |
| 241 | + <!-- Avoid duplicating compiled classes within the `META-INF/versions/9/` root. --> |
| 242 | + <exclude>META-INF/versions/9/com/**/*.class</exclude> |
| 243 | + </excludes> |
| 244 | + <archive> |
| 245 | + <manifestEntries> |
| 246 | + <Multi-Release>true</Multi-Release> |
| 247 | + </manifestEntries> |
| 248 | + </archive> |
| 249 | + </configuration> |
215 | 250 | </plugin> |
216 | 251 | <plugin> |
217 | 252 | <artifactId>maven-javadoc-plugin</artifactId> |
|
0 commit comments