Merge branch '2.5.x' into 2.6.x
Closes gh-30850
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -27,7 +27,7 @@ import org.springframework.boot.buildpack.platform.io.Content;
|
||||
import org.springframework.boot.buildpack.platform.io.Owner;
|
||||
|
||||
/**
|
||||
* A short lived builder that is created for each {@link Lifecycle} run.
|
||||
* A short-lived builder that is created for each {@link Lifecycle} run.
|
||||
*
|
||||
* @author Phillip Webb
|
||||
* @author Scott Frederick
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -155,7 +155,7 @@ public final class ImageReference {
|
||||
|
||||
/**
|
||||
* Return an {@link ImageReference} containing either a tag or a digest. If neither
|
||||
* the digest or the tag has been defined then tag {@code latest} is used.
|
||||
* the digest nor the tag has been defined then tag {@code latest} is used.
|
||||
* @return the image reference in tagged or digest form
|
||||
*/
|
||||
public ImageReference inTaggedOrDigestForm() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -64,7 +64,7 @@ class BuildpackReferenceTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
void hasPrefixWhenPrifixMismatchReturnsFalse() {
|
||||
void hasPrefixWhenPrefixMismatchReturnsFalse() {
|
||||
BuildpackReference reference = BuildpackReference.of("test");
|
||||
assertThat(reference.hasPrefix("st")).isFalse();
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -213,7 +213,7 @@ public final class Metadata {
|
||||
.filter((item) -> item.isOfItemType(this.itemType) && name.equals(item.getName()))
|
||||
.collect(Collectors.toList());
|
||||
if (candidates.size() > 1) {
|
||||
throw new IllegalStateException("More that one metadata item with name '" + name + "': " + candidates);
|
||||
throw new IllegalStateException("More than one metadata item with name '" + name + "': " + candidates);
|
||||
}
|
||||
return (candidates.size() == 1) ? candidates.get(0) : null;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -83,7 +83,7 @@ class RunningDocumentationTests {
|
||||
}
|
||||
|
||||
@TestTemplate
|
||||
void bootRunSystemPropetry() {
|
||||
void bootRunSystemProperty() {
|
||||
assertThat(this.gradleBuild.script("src/docs/gradle/running/boot-run-system-property")
|
||||
.build("-Pexample=custom", "configuredSystemProperties").getOutput())
|
||||
.contains("com.example.property = custom");
|
||||
|
||||
@@ -29,8 +29,8 @@ import org.springframework.util.StringUtils;
|
||||
|
||||
/**
|
||||
* Helper class to build Gradle {@link Project Projects} for test fixtures. Wraps
|
||||
* functionality of Gradle's own {@link ProjectBuilder} in order to workaround an issue on
|
||||
* JDK 17 and 18.
|
||||
* functionality of Gradle's own {@link ProjectBuilder} in order to work around an issue
|
||||
* on JDK 17 and 18.
|
||||
*
|
||||
* @author Christoph Dreis
|
||||
* @see <a href="https://github.com/gradle/gradle/issues/16857">Gradle Support JDK 17</a>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -350,7 +350,7 @@ class JarFileEntries implements CentralDirectoryVisitor, Iterable<JarEntry> {
|
||||
JarEntryCertification[] certifications = this.certifications;
|
||||
if (certifications == null) {
|
||||
certifications = new JarEntryCertification[this.size];
|
||||
// We fallback to use JarInputStream to obtain the certs. This isn't that
|
||||
// We fall back to use JarInputStream to obtain the certs. This isn't that
|
||||
// fast, but hopefully doesn't happen too often.
|
||||
try (JarInputStream certifiedJarStream = new JarInputStream(this.jarFile.getData().getInputStream())) {
|
||||
java.util.jar.JarEntry certifiedEntry = null;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -187,7 +187,7 @@ public class BuildImageMojo extends AbstractPackagerMojo {
|
||||
private LayoutFactory layoutFactory;
|
||||
|
||||
/**
|
||||
* Return the type of archive that should be used when buiding the image.
|
||||
* Return the type of archive that should be used when building the image.
|
||||
* @return the value of the {@code layout} parameter, or {@code null} if the parameter
|
||||
* is not provided
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -71,7 +71,7 @@ public class StartMojo extends AbstractRunMojo {
|
||||
private int jmxPort;
|
||||
|
||||
/**
|
||||
* The number of milli-seconds to wait between each attempt to check if the spring
|
||||
* The number of milliseconds to wait between each attempt to check if the spring
|
||||
* application is ready.
|
||||
*/
|
||||
@Parameter(property = "spring-boot.start.wait", defaultValue = "500")
|
||||
|
||||
Reference in New Issue
Block a user