@ -23,7 +23,7 @@ To add the actuator to a Maven based project, add the following '`Starter`' depe
@@ -23,7 +23,7 @@ To add the actuator to a Maven based project, add the following '`Starter`' depe
@ -22,7 +22,7 @@ With Maven the dependency should be declared as optional, as shown in the follow
@@ -22,7 +22,7 @@ With Maven the dependency should be declared as optional, as shown in the follow
With Gradle, the dependency should be declared in the `annotationProcessor` configuration, as shown in the following example:
@ -31,7 +31,7 @@ With Gradle, the dependency should be declared in the `annotationProcessor` conf
@@ -31,7 +31,7 @@ With Gradle, the dependency should be declared in the `annotationProcessor` conf
If you are using an `additional-spring-configuration-metadata.json` file, the `compileJava` task should be configured to depend on the `processResources` task, as shown in the following example:
@ -28,7 +28,7 @@ To create a '`fully executable`' jar with Maven, use the following plugin config
@@ -28,7 +28,7 @@ To create a '`fully executable`' jar with Maven, use the following plugin config
The following example shows the equivalent Gradle configuration:
@ -317,7 +317,7 @@ If you have defined auto-configurations directly in your application, make sure
@@ -317,7 +317,7 @@ If you have defined auto-configurations directly in your application, make sure
With Gradle 4.5 and earlier, the dependency should be declared in the `compileOnly` configuration, as shown in the following example:
@ -326,7 +326,7 @@ With Gradle 4.5 and earlier, the dependency should be declared in the `compileOn
@@ -326,7 +326,7 @@ With Gradle 4.5 and earlier, the dependency should be declared in the `compileOn
With Gradle 4.6 and later, the dependency should be declared in the `annotationProcessor` configuration, as shown in the following example:
@ -37,7 +37,7 @@ TIP: See the {spring-boot-maven-plugin-docs}#goals-build-info[Spring Boot Maven
@@ -37,7 +37,7 @@ TIP: See the {spring-boot-maven-plugin-docs}#goals-build-info[Spring Boot Maven
@ -69,7 +69,7 @@ To use it, add the following declaration to your POM:
@@ -69,7 +69,7 @@ To use it, add the following declaration to your POM:
Gradle users can achieve the same result by using the https://plugins.gradle.org/plugin/com.gorylenko.gradle-git-properties[`gradle-git-properties`] plugin, as shown in the following example:
[source,groovy,indent=0]
[source,gradle,indent=0]
----
plugins {
id "com.gorylenko.gradle-git-properties" version "2.2.4"
@ -148,7 +148,7 @@ The following example shows how to set up the starters in Maven:
@@ -148,7 +148,7 @@ The following example shows how to set up the starters in Maven:
And the following example shows one way to set up the starters in Gradle:
@ -69,7 +69,7 @@ If that property is not set to `false`, these may be expanded by the build.
@@ -69,7 +69,7 @@ If that property is not set to `false`, these may be expanded by the build.
==== Automatic Property Expansion Using Gradle
You can automatically expand properties from the Gradle project by configuring the Java plugin's `processResources` task to do so, as shown in the following example:
@ -29,7 +29,7 @@ If you use Maven and `spring-boot-starter-parent` (which configures Maven's war
@@ -29,7 +29,7 @@ If you use Maven and `spring-boot-starter-parent` (which configures Maven's war
If you use Gradle, you need to modify `build.gradle` to apply the war plugin to the project, as follows:
@ -54,7 +54,7 @@ If you use Maven, the following example marks the servlet container (Tomcat, in
@@ -54,7 +54,7 @@ If you use Maven, the following example marks the servlet container (Tomcat, in
If you use Gradle, the following example marks the servlet container (Tomcat, in this case) as being provided:
@ -46,7 +46,7 @@ If you wish to use Jetty 10, which does support Servlet 4.0, override the `jetty
@@ -46,7 +46,7 @@ If you wish to use Jetty 10, which does support Servlet 4.0, override the `jetty
The following Gradle example shows how to use Undertow in place of Reactor Netty for Spring WebFlux:
@ -17,7 +17,7 @@ To include devtools support, add the module dependency to your build, as shown i
@@ -17,7 +17,7 @@ To include devtools support, add the module dependency to your build, as shown i