Merge branch '2.3.x'

Closes gh-22980
This commit is contained in:
Stephane Nicoll
2020-08-17 14:20:50 +02:00
4 changed files with 27 additions and 16 deletions

View File

@@ -235,6 +235,13 @@ class PackagingDocumentationTests {
.contains("HTTPS_PROXY=https://proxy.example.com");
}
@TestTemplate
void bootBuildImageWithCustomImageName() throws IOException {
BuildResult result = this.gradleBuild.script("src/docs/gradle/packaging/boot-build-image-name")
.build("bootBuildImageName");
assertThat(result.getOutput()).contains("example.com/library/" + this.gradleBuild.getProjectDir().getName());
}
protected void jarFile(File file) throws IOException {
try (JarOutputStream jar = new JarOutputStream(new FileOutputStream(file))) {
jar.putNextEntry(new ZipEntry("META-INF/MANIFEST.MF"));