Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions guava-shaded/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,32 @@
</dependencies>
<build>
<plugins>
<plugin>
<!--
Do not attempt to recompile the module if we are not running JVM 1.8.
Having additional Java source files and having to shade Guava will break
in CI environment, when we run 'mvn verify' on newer JVM and assume that
all classes have been compiled with JVM 1.8.
-->
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.12</version>
<executions>
<execution>
<id>regex-property</id>
<goals>
<goal>regex-property</goal>
</goals>
<configuration>
<name>maven.main.skip</name>
<value>${java.version}</value>
<regex>^(?!1.8).+</regex>
<replacement>true</replacement>
<failIfNoMatch>false</failIfNoMatch>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<executions>
Expand Down Expand Up @@ -101,6 +127,12 @@
</executions>
</plugin>
<plugin>
<!--
Cleaning up target directory is required, because module's Java source files
(e.g. LexicographicalComparatorHolderSubstitution) will be left with
their original Java package AND eventually shaded one. This plugin removes
the Java class from its unshaded package.
-->
<artifactId>maven-clean-plugin</artifactId>
<executions>
<execution>
Expand Down