Skip to content

Commit

Permalink
Update instruction to add the configuration processor with Maven
Browse files Browse the repository at this point in the history
Closes gh-24498
  • Loading branch information
snicoll committed Dec 15, 2020
1 parent bf1619e commit 251e8b2
Showing 1 changed file with 0 additions and 24 deletions.
Expand Up @@ -713,30 +713,6 @@ With Maven the dependency should be declared as optional, as shown in the follow
</dependency>
----

If you have defined `@ConfigurationProperties` in your application, make sure to configure the `spring-boot-maven-plugin` to prevent the `repackage` goal from adding the dependency into the fat jar:

[source,xml,indent=0,subs="verbatim,quotes,attributes"]
----
<project>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</project>
----

With Gradle, the dependency should be declared in the `annotationProcessor` configuration, as shown in the following example:

[source,groovy,indent=0,subs="verbatim,quotes,attributes"]
Expand Down

0 comments on commit 251e8b2

Please sign in to comment.