Skip to content

Commit

Permalink
Shade annotation processor dependencies
Browse files Browse the repository at this point in the history
Update the annotation processor to be completely self contained. The
single required dependency is now "shaded" into the jar.

Fixes gh-7883
  • Loading branch information
philwebb committed Jan 5, 2017
1 parent cc7c2eb commit 45d5b60
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions spring-boot-tools/spring-boot-configuration-processor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@
<main.basedir>${basedir}/../..</main.basedir>
</properties>
<dependencies>
<!-- Compile (should stick to the bare minimum) -->
<dependency>
<!-- Shaded -->
<dependency>
<groupId>com.vaadin.external.google</groupId>
<artifactId>android-json</artifactId>
<optional>true</optional>
</dependency>
<!-- Test -->
<dependency>
Expand All @@ -41,6 +42,34 @@
<proc>none</proc>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<filters>
<filter>
<artifact>com.vaadin.external.google:android-json</artifact>
</filter>
</filters>
<relocations>
<relocation>
<pattern>org.json</pattern>
<shadedPattern>org.springframework.boot.configurationprocessor.json</shadedPattern>
</relocation>
</relocations>
<createDependencyReducedPom>false</createDependencyReducedPom>
<createSourcesJar>true</createSourcesJar>
<shadeSourcesContent>true</shadeSourcesContent>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 45d5b60

Please sign in to comment.