Skip to content

Commit

Permalink
[fix] redo guava + shading in the compiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
zolyfarkas authored and thiru-aqfer committed May 18, 2017
1 parent e0a3907 commit e1d331d
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 8 deletions.
26 changes: 25 additions & 1 deletion lang/java/compiler/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,31 @@
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<includes>
<include>org.apache.avro:avro-guava-dependencies</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>com.google.common</pattern>
<shadedPattern>avro.shaded.com.google.common</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>

</plugins>
</build>

Expand Down Expand Up @@ -137,7 +162,6 @@
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
<scope>test</scope>
<exclusions>
<exclusion> <!-- GPL -->
<groupId>com.google.code.findbugs</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

package org.apache.avro.compiler.idl;

import avro.shaded.com.google.common.base.Function;
import com.google.common.base.Function;
import java.util.ArrayList;
import java.util.IdentityHashMap;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
*/
package org.apache.avro.compiler.idl;

import avro.shaded.com.google.common.base.Function;

import com.google.common.base.Function;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package org.apache.avro.compiler.schema;

import avro.shaded.com.google.common.base.Function;
import avro.shaded.com.google.common.base.Supplier;
import avro.shaded.com.google.common.collect.Lists;

import com.google.common.base.Function;
import com.google.common.base.Supplier;
import com.google.common.collect.Lists;
import java.util.ArrayDeque;
import java.util.Arrays;
import java.util.Deque;
Expand Down

0 comments on commit e1d331d

Please sign in to comment.