Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
cbab2396
Commit
cbab2396
authored
Feb 26, 2021
by
jnizet
Committed by
Stephane Nicoll
Mar 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix property name in gradle plugin documentation
See gh-25454
parent
aa032e09
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletion
+20
-1
boot-build-image-publish.gradle
...src/docs/gradle/packaging/boot-build-image-publish.gradle
+6
-0
boot-build-image-publish.gradle.kts
...docs/gradle/packaging/boot-build-image-publish.gradle.kts
+7
-1
PackagingDocumentationTests.java
...amework/boot/gradle/docs/PackagingDocumentationTests.java
+7
-0
No files found.
spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/gradle/packaging/boot-build-image-publish.gradle
View file @
cbab2396
...
...
@@ -21,3 +21,9 @@ bootBuildImage {
}
}
// end::publish[]
task
bootBuildImagePublish
{
doFirst
{
println
(
tasks
.
bootBuildImage
.
publish
)
}
}
spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/gradle/packaging/boot-build-image-publish.gradle.kts
View file @
cbab2396
...
...
@@ -13,7 +13,7 @@ tasks.getByName<BootJar>("bootJar") {
// tag::publish[]
tasks
.
getByName
<
BootBuildImage
>(
"bootBuildImage"
)
{
imageName
=
"docker.example.com/library/${project.name}"
p
ublish
=
true
isP
ublish
=
true
docker
{
publishRegistry
{
username
=
"user"
...
...
@@ -24,3 +24,9 @@ tasks.getByName<BootBuildImage>("bootBuildImage") {
}
}
// end::publish[]
tasks
.
register
(
"bootBuildImagePublish"
)
{
doFirst
{
println
(
tasks
.
getByName
<
BootBuildImage
>(
"bootBuildImage"
).
isPublish
)
}
}
spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/docs/PackagingDocumentationTests.java
View file @
cbab2396
...
...
@@ -242,6 +242,13 @@ class PackagingDocumentationTests {
assertThat
(
result
.
getOutput
()).
contains
(
"example.com/library/"
+
this
.
gradleBuild
.
getProjectDir
().
getName
());
}
@TestTemplate
void
bootBuildImagePublish
()
throws
IOException
{
BuildResult
result
=
this
.
gradleBuild
.
script
(
"src/docs/gradle/packaging/boot-build-image-publish"
)
.
build
(
"bootBuildImagePublish"
);
assertThat
(
result
.
getOutput
()).
contains
(
"true"
);
}
protected
void
jarFile
(
File
file
)
throws
IOException
{
try
(
JarOutputStream
jar
=
new
JarOutputStream
(
new
FileOutputStream
(
file
)))
{
jar
.
putNextEntry
(
new
ZipEntry
(
"META-INF/MANIFEST.MF"
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment