-
Notifications
You must be signed in to change notification settings - Fork 40.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace the Maven Plugin's site with Asciidoctor documentation
Closes gh-19080 Co-authored-by: Stephane Nicoll <snicoll@pivotal.io>
- Loading branch information
1 parent
b62fea5
commit 3e2454f
Showing
12 changed files
with
1,255 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
...ct/spring-boot-tools/spring-boot-maven-plugin/src/main/asciidoc/build-info.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
[[build-info]] | ||
== Integrating with Actuator | ||
Spring Boot Actuator displays build-related information if a `META-INF/build-info.properties` file is present. | ||
The `build-info` goal generates such file with the coordinates of the project and the build time. | ||
It also allows you to add an arbitrary number of additional properties, as shown in the following example: | ||
|
||
[source,xml,indent=0,subs="verbatim,attributes"] | ||
---- | ||
<project> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-maven-plugin</artifactId> | ||
<version>{version}</version> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>build-info</goal> | ||
</goals> | ||
<configuration> | ||
<additionalProperties> | ||
<encoding.source>UTF-8</encoding.source> | ||
<encoding.reporting>UTF-8</encoding.reporting> | ||
<java.source>${maven.compiler.source}</java.source> | ||
<java.target>${maven.compiler.target}</java.target> | ||
</additionalProperties> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> | ||
---- | ||
|
||
This configuration will generate a `build-info.properties` at the expected location with four additional keys. | ||
Note that `maven.compiler.source` and `maven.compiler.target` are expected to be regular properties available in the project. | ||
They will be interpolated as you would expect. | ||
|
||
include::{generated-resources-root}/goals/build-info.adoc[leveloffset=+1] |
7 changes: 7 additions & 0 deletions
7
...ring-boot-tools/spring-boot-maven-plugin/src/main/asciidoc/getting-started.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[[getting-started]] | ||
== Getting started | ||
|
||
The Spring Boot Plugin has the following goals: | ||
|
||
include::{generated-resources-root}/goals/overview.adoc[] | ||
|
5 changes: 5 additions & 0 deletions
5
...-project/spring-boot-tools/spring-boot-maven-plugin/src/main/asciidoc/help.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[[help]] | ||
== Help information | ||
The `help` goal is a standard goal that displays information on the capabilities of the plugin. | ||
|
||
include::{generated-resources-root}/goals/help.adoc[leveloffset=+1] |
Oops, something went wrong.