Compare commits

...

2 Commits

Author SHA1 Message Date
Rick Ossendrijver
31e5a8ad23 Simplify example with Guava 2022-07-05 15:34:52 +02:00
Rick Ossendrijver
9cb360ea88 Introduce simple reproduction case 2022-07-01 16:06:15 +02:00
3 changed files with 97 additions and 1 deletions

View File

@@ -42,6 +42,7 @@
<module>error-prone-contrib</module>
<module>refaster-compiler</module>
<module>refaster-support</module>
<module>weird-classpath-issue</module>
</modules>
<scm>
@@ -131,7 +132,7 @@
<!-- Dependency and plugin versions that are referenced in more than
one place. We use these to keep dependencies in sync. Version numbers
that need to be referenced only once should *not* be listed here. -->
<version.auto-service>1.0.1</version.auto-service>
<version.auto-service>1.0</version.auto-service>
<version.auto-value>1.9</version.auto-value>
<version.error-prone>${version.error-prone-orig}</version.error-prone>
<version.error-prone-fork>v${version.error-prone-orig}-picnic-3</version.error-prone-fork>

View File

@@ -0,0 +1,89 @@
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>tech.picnic.error-prone-support</groupId>
<version>0.0.1-SNAPSHOT</version>
<artifactId>weird-classpath-issue</artifactId>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<name>Try some stuff</name>
<dependencies>
<dependency>
<groupId>com.google.auto.service</groupId>
<artifactId>auto-service</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<!-- <version>3.9.0</version>-->
<configuration>
<annotationProcessorPaths>
<path>
<groupId>com.google.auto.service</groupId>
<artifactId>auto-service</artifactId>
<version>1.0</version>
</path>
</annotationProcessorPaths>
<parameters>true</parameters>
<release>11</release>
<!-- Even though `-release X` implies `-source X` and-->
<!-- `-target X`, we need to configure these properties-->
<!-- explicitily, for otherwise the plugin's default value-->
<!-- of `1.6` is passed on. &ndash;&gt;-->
<source>11</source>
<target>11</target>
<!-- &lt;!&ndash; Erroneously inverted logic... for details, see-->
<!-- https://issues.apache.org/jira/browse/MCOMPILER-209. &ndash;&gt;-->
<useIncrementalCompilation>false</useIncrementalCompilation>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<id>guava</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessorPaths combine.children="append">
<path>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>31.0.1-jre</version>
</path>
<!-- <path>-->
<!-- <groupId>com.github.PicnicSupermarket.error-prone</groupId>-->
<!-- <artifactId>error_prone_annotations</artifactId>-->
<!-- <version>v2.10.0-picnic-3</version>-->
<!-- </path>-->
<!-- <path>-->
<!-- <groupId>com.github.PicnicSupermarket.error-prone</groupId>-->
<!-- <artifactId>error_prone_core</artifactId>-->
<!-- <version>v2.10.0-picnic-1</version>-->
<!-- </path>-->
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

View File

@@ -0,0 +1,6 @@
package tech.picnic.errorprone.refaster;
import com.google.auto.service.AutoService;
//@AutoService(A.class)
public class A {}