Configure bootJar task to add documentation to Spring Boot fat jar
Closes gh-521
This commit is contained in:
@@ -245,7 +245,7 @@ from where it will be included in the jar file.
|
||||
[source,indent=0,role="secondary"]
|
||||
.Gradle
|
||||
----
|
||||
jar {
|
||||
bootJar {
|
||||
dependsOn asciidoctor <1>
|
||||
from ("${asciidoctor.outputDir}/html5") { <2>
|
||||
into 'static/docs'
|
||||
|
||||
@@ -58,7 +58,7 @@ asciidoctor {
|
||||
dependsOn test
|
||||
}
|
||||
|
||||
jar {
|
||||
bootJar {
|
||||
dependsOn asciidoctor
|
||||
from ("${asciidoctor.outputDir}/html5") {
|
||||
into 'static/docs'
|
||||
|
||||
@@ -50,7 +50,7 @@ asciidoctor {
|
||||
dependsOn test
|
||||
}
|
||||
|
||||
jar {
|
||||
bootJar {
|
||||
dependsOn asciidoctor
|
||||
from ("${asciidoctor.outputDir}/html5") {
|
||||
into 'static/docs'
|
||||
|
||||
@@ -56,7 +56,7 @@ asciidoctor {
|
||||
dependsOn test
|
||||
}
|
||||
|
||||
jar {
|
||||
bootJar {
|
||||
dependsOn asciidoctor
|
||||
from ("${asciidoctor.outputDir}/html5") {
|
||||
into 'static/docs'
|
||||
|
||||
@@ -55,7 +55,7 @@ asciidoctor {
|
||||
dependsOn test
|
||||
}
|
||||
|
||||
jar {
|
||||
bootJar {
|
||||
dependsOn asciidoctor
|
||||
from ("${asciidoctor.outputDir}/html5") {
|
||||
into 'static/docs'
|
||||
|
||||
Reference in New Issue
Block a user