Rename spring-boot-cloudnativebuildpack

Rename the `spring-boot-cloudnativebuildpack` module to
`spring-boot-buildpack-platform` and update the the package
name to `org.springframework.boot.buildpack.platform`.

Closes gh-19851
pull/19863/head
Phillip Webb 5 years ago
parent 288889685d
commit e28338d6cd

@ -127,7 +127,7 @@
name="spring-boot-tools">
<predicate
xsi:type="predicates:NamePredicate"
pattern="spring-boot-(tools|antlib|configuration-.*|loader|.*-tools|*.layertools|.*-plugin|autoconfigure-processor|cloudnativebuildpack)"/>
pattern="spring-boot-(tools|antlib|configuration-.*|loader|.*-tools|*.layertools|.*-plugin|autoconfigure-processor|buildpack.*)"/>
</workingSet>
<workingSet
name="spring-boot-starters">

@ -41,7 +41,7 @@ include 'spring-boot-project:spring-boot-dependencies'
include 'spring-boot-project:spring-boot-parent'
include 'spring-boot-project:spring-boot-tools:spring-boot-antlib'
include 'spring-boot-project:spring-boot-tools:spring-boot-autoconfigure-processor'
include 'spring-boot-project:spring-boot-tools:spring-boot-cloudnativebuildpack'
include 'spring-boot-project:spring-boot-tools:spring-boot-buildpack-platform'
include 'spring-boot-project:spring-boot-tools:spring-boot-configuration-metadata'
include 'spring-boot-project:spring-boot-tools:spring-boot-configuration-processor'
include 'spring-boot-project:spring-boot-tools:spring-boot-gradle-plugin'

@ -1421,7 +1421,7 @@ bom {
'spring-boot-actuator-autoconfigure',
'spring-boot-autoconfigure',
'spring-boot-autoconfigure-processor',
'spring-boot-cloudnativebuildpack',
'spring-boot-buildpack-platform',
'spring-boot-configuration-metadata',
'spring-boot-configuration-processor',
'spring-boot-devtools',

@ -5,7 +5,7 @@ plugins {
id 'org.springframework.boot.internal-dependency-management'
}
description = 'Spring Boot Cloud Native Buildpack'
description = 'Spring Boot Buildpack Platform'
dependencies {
api platform(project(':spring-boot-project:spring-boot-parent'))

@ -14,16 +14,16 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.build;
package org.springframework.boot.buildpack.platform.build;
import java.util.List;
import java.util.function.Consumer;
import org.springframework.boot.cloudnativebuildpack.docker.LogUpdateEvent;
import org.springframework.boot.cloudnativebuildpack.docker.TotalProgressEvent;
import org.springframework.boot.cloudnativebuildpack.docker.type.Image;
import org.springframework.boot.cloudnativebuildpack.docker.type.ImageReference;
import org.springframework.boot.cloudnativebuildpack.docker.type.VolumeName;
import org.springframework.boot.buildpack.platform.docker.LogUpdateEvent;
import org.springframework.boot.buildpack.platform.docker.TotalProgressEvent;
import org.springframework.boot.buildpack.platform.docker.type.Image;
import org.springframework.boot.buildpack.platform.docker.type.ImageReference;
import org.springframework.boot.buildpack.platform.docker.type.VolumeName;
/**
* Base class for {@link BuildLog} implementations.

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.build;
package org.springframework.boot.buildpack.platform.build;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

@ -14,16 +14,16 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.build;
package org.springframework.boot.buildpack.platform.build;
import java.io.PrintStream;
import java.util.function.Consumer;
import org.springframework.boot.cloudnativebuildpack.docker.LogUpdateEvent;
import org.springframework.boot.cloudnativebuildpack.docker.TotalProgressEvent;
import org.springframework.boot.cloudnativebuildpack.docker.type.Image;
import org.springframework.boot.cloudnativebuildpack.docker.type.ImageReference;
import org.springframework.boot.cloudnativebuildpack.docker.type.VolumeName;
import org.springframework.boot.buildpack.platform.docker.LogUpdateEvent;
import org.springframework.boot.buildpack.platform.docker.TotalProgressEvent;
import org.springframework.boot.buildpack.platform.docker.type.Image;
import org.springframework.boot.buildpack.platform.docker.type.ImageReference;
import org.springframework.boot.buildpack.platform.docker.type.VolumeName;
/**
* Callback interface used to provide {@link Builder} output logging.

@ -14,11 +14,11 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.build;
package org.springframework.boot.buildpack.platform.build;
import java.util.Map;
import org.springframework.boot.cloudnativebuildpack.io.Owner;
import org.springframework.boot.buildpack.platform.io.Owner;
import org.springframework.util.Assert;
import org.springframework.util.StringUtils;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.build;
package org.springframework.boot.buildpack.platform.build;
import java.io.File;
import java.util.Collections;
@ -22,9 +22,9 @@ import java.util.LinkedHashMap;
import java.util.Map;
import java.util.function.Function;
import org.springframework.boot.cloudnativebuildpack.docker.type.ImageReference;
import org.springframework.boot.cloudnativebuildpack.io.Owner;
import org.springframework.boot.cloudnativebuildpack.io.TarArchive;
import org.springframework.boot.buildpack.platform.docker.type.ImageReference;
import org.springframework.boot.buildpack.platform.io.Owner;
import org.springframework.boot.buildpack.platform.io.TarArchive;
import org.springframework.util.Assert;
/**

@ -14,19 +14,19 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.build;
package org.springframework.boot.buildpack.platform.build;
import java.io.IOException;
import java.util.function.Consumer;
import org.springframework.boot.cloudnativebuildpack.build.BuilderMetadata.Stack;
import org.springframework.boot.cloudnativebuildpack.docker.DockerApi;
import org.springframework.boot.cloudnativebuildpack.docker.DockerException;
import org.springframework.boot.cloudnativebuildpack.docker.TotalProgressEvent;
import org.springframework.boot.cloudnativebuildpack.docker.TotalProgressPullListener;
import org.springframework.boot.cloudnativebuildpack.docker.UpdateListener;
import org.springframework.boot.cloudnativebuildpack.docker.type.Image;
import org.springframework.boot.cloudnativebuildpack.docker.type.ImageReference;
import org.springframework.boot.buildpack.platform.build.BuilderMetadata.Stack;
import org.springframework.boot.buildpack.platform.docker.DockerApi;
import org.springframework.boot.buildpack.platform.docker.DockerException;
import org.springframework.boot.buildpack.platform.docker.TotalProgressEvent;
import org.springframework.boot.buildpack.platform.docker.TotalProgressPullListener;
import org.springframework.boot.buildpack.platform.docker.UpdateListener;
import org.springframework.boot.buildpack.platform.docker.type.Image;
import org.springframework.boot.buildpack.platform.docker.type.ImageReference;
import org.springframework.util.Assert;
import org.springframework.util.StringUtils;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.build;
package org.springframework.boot.buildpack.platform.build;
import java.io.IOException;
import java.lang.invoke.MethodHandles;
@ -25,10 +25,10 @@ import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import org.springframework.boot.cloudnativebuildpack.docker.type.Image;
import org.springframework.boot.cloudnativebuildpack.docker.type.ImageConfig;
import org.springframework.boot.cloudnativebuildpack.json.MappedObject;
import org.springframework.boot.cloudnativebuildpack.json.SharedObjectMapper;
import org.springframework.boot.buildpack.platform.docker.type.Image;
import org.springframework.boot.buildpack.platform.docker.type.ImageConfig;
import org.springframework.boot.buildpack.platform.json.MappedObject;
import org.springframework.boot.buildpack.platform.json.SharedObjectMapper;
import org.springframework.util.Assert;
/**

@ -14,21 +14,21 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.build;
package org.springframework.boot.buildpack.platform.build;
import java.io.IOException;
import java.time.Clock;
import java.time.Instant;
import java.util.Map;
import org.springframework.boot.cloudnativebuildpack.build.BuilderMetadata.Stack.RunImage;
import org.springframework.boot.cloudnativebuildpack.docker.type.Image;
import org.springframework.boot.cloudnativebuildpack.docker.type.ImageArchive;
import org.springframework.boot.cloudnativebuildpack.docker.type.ImageReference;
import org.springframework.boot.cloudnativebuildpack.docker.type.Layer;
import org.springframework.boot.cloudnativebuildpack.io.Content;
import org.springframework.boot.cloudnativebuildpack.io.Owner;
import org.springframework.boot.cloudnativebuildpack.toml.Toml;
import org.springframework.boot.buildpack.platform.build.BuilderMetadata.Stack.RunImage;
import org.springframework.boot.buildpack.platform.docker.type.Image;
import org.springframework.boot.buildpack.platform.docker.type.ImageArchive;
import org.springframework.boot.buildpack.platform.docker.type.ImageReference;
import org.springframework.boot.buildpack.platform.docker.type.Layer;
import org.springframework.boot.buildpack.platform.io.Content;
import org.springframework.boot.buildpack.platform.io.Owner;
import org.springframework.boot.buildpack.platform.toml.Toml;
/**
* An short lived builder that is created for each {@link Lifecycle} run.

@ -14,20 +14,20 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.build;
package org.springframework.boot.buildpack.platform.build;
import java.io.Closeable;
import java.io.IOException;
import java.util.function.Consumer;
import org.springframework.boot.cloudnativebuildpack.docker.DockerApi;
import org.springframework.boot.cloudnativebuildpack.docker.LogUpdateEvent;
import org.springframework.boot.cloudnativebuildpack.docker.type.ContainerConfig;
import org.springframework.boot.cloudnativebuildpack.docker.type.ContainerContent;
import org.springframework.boot.cloudnativebuildpack.docker.type.ContainerReference;
import org.springframework.boot.cloudnativebuildpack.docker.type.ImageReference;
import org.springframework.boot.cloudnativebuildpack.docker.type.VolumeName;
import org.springframework.boot.cloudnativebuildpack.io.TarArchive;
import org.springframework.boot.buildpack.platform.docker.DockerApi;
import org.springframework.boot.buildpack.platform.docker.LogUpdateEvent;
import org.springframework.boot.buildpack.platform.docker.type.ContainerConfig;
import org.springframework.boot.buildpack.platform.docker.type.ContainerContent;
import org.springframework.boot.buildpack.platform.docker.type.ContainerReference;
import org.springframework.boot.buildpack.platform.docker.type.ImageReference;
import org.springframework.boot.buildpack.platform.docker.type.VolumeName;
import org.springframework.boot.buildpack.platform.io.TarArchive;
import org.springframework.util.Assert;
import org.springframework.util.StringUtils;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.build;
package org.springframework.boot.buildpack.platform.build;
import java.util.ArrayList;
import java.util.Arrays;
@ -22,8 +22,8 @@ import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.springframework.boot.cloudnativebuildpack.docker.type.ContainerConfig;
import org.springframework.boot.cloudnativebuildpack.docker.type.VolumeName;
import org.springframework.boot.buildpack.platform.docker.type.ContainerConfig;
import org.springframework.boot.buildpack.platform.docker.type.VolumeName;
import org.springframework.util.StringUtils;
/**

@ -14,13 +14,13 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.build;
package org.springframework.boot.buildpack.platform.build;
import java.io.PrintStream;
import java.util.function.Consumer;
import org.springframework.boot.cloudnativebuildpack.docker.TotalProgressBar;
import org.springframework.boot.cloudnativebuildpack.docker.TotalProgressEvent;
import org.springframework.boot.buildpack.platform.docker.TotalProgressBar;
import org.springframework.boot.buildpack.platform.docker.TotalProgressEvent;
/**
* {@link BuildLog} implementation that prints output to a {@link PrintStream}.

@ -14,12 +14,12 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.build;
package org.springframework.boot.buildpack.platform.build;
import java.util.Map;
import org.springframework.boot.cloudnativebuildpack.docker.type.Image;
import org.springframework.boot.cloudnativebuildpack.docker.type.ImageConfig;
import org.springframework.boot.buildpack.platform.docker.type.Image;
import org.springframework.boot.buildpack.platform.docker.type.ImageConfig;
import org.springframework.util.Assert;
import org.springframework.util.StringUtils;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker;
package org.springframework.boot.buildpack.platform.docker;
import java.io.IOException;
import java.net.URI;
@ -26,16 +26,16 @@ import java.util.List;
import org.apache.http.client.utils.URIBuilder;
import org.springframework.boot.cloudnativebuildpack.docker.Http.Response;
import org.springframework.boot.cloudnativebuildpack.docker.type.ContainerConfig;
import org.springframework.boot.cloudnativebuildpack.docker.type.ContainerContent;
import org.springframework.boot.cloudnativebuildpack.docker.type.ContainerReference;
import org.springframework.boot.cloudnativebuildpack.docker.type.Image;
import org.springframework.boot.cloudnativebuildpack.docker.type.ImageArchive;
import org.springframework.boot.cloudnativebuildpack.docker.type.ImageReference;
import org.springframework.boot.cloudnativebuildpack.docker.type.VolumeName;
import org.springframework.boot.cloudnativebuildpack.json.JsonStream;
import org.springframework.boot.cloudnativebuildpack.json.SharedObjectMapper;
import org.springframework.boot.buildpack.platform.docker.Http.Response;
import org.springframework.boot.buildpack.platform.docker.type.ContainerConfig;
import org.springframework.boot.buildpack.platform.docker.type.ContainerContent;
import org.springframework.boot.buildpack.platform.docker.type.ContainerReference;
import org.springframework.boot.buildpack.platform.docker.type.Image;
import org.springframework.boot.buildpack.platform.docker.type.ImageArchive;
import org.springframework.boot.buildpack.platform.docker.type.ImageReference;
import org.springframework.boot.buildpack.platform.docker.type.VolumeName;
import org.springframework.boot.buildpack.platform.json.JsonStream;
import org.springframework.boot.buildpack.platform.json.SharedObjectMapper;
import org.springframework.util.Assert;
import org.springframework.util.StringUtils;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker;
package org.springframework.boot.buildpack.platform.docker;
import java.io.IOException;
import java.net.InetSocketAddress;
@ -25,8 +25,8 @@ import org.apache.http.HttpHost;
import org.apache.http.conn.socket.ConnectionSocketFactory;
import org.apache.http.protocol.HttpContext;
import org.springframework.boot.cloudnativebuildpack.socket.DomainSocket;
import org.springframework.boot.cloudnativebuildpack.socket.NamedPipeSocket;
import org.springframework.boot.buildpack.platform.socket.DomainSocket;
import org.springframework.boot.buildpack.platform.socket.NamedPipeSocket;
/**
* {@link ConnectionSocketFactory} that connects to the Docker domain socket or named

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker;
package org.springframework.boot.buildpack.platform.docker;
import java.net.InetAddress;
import java.net.UnknownHostException;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker;
package org.springframework.boot.buildpack.platform.docker;
import org.apache.http.config.Registry;
import org.apache.http.config.RegistryBuilder;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker;
package org.springframework.boot.buildpack.platform.docker;
import org.apache.http.HttpHost;
import org.apache.http.conn.SchemePortResolver;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker;
package org.springframework.boot.buildpack.platform.docker;
import java.util.Collections;
import java.util.Iterator;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker;
package org.springframework.boot.buildpack.platform.docker;
import java.io.Closeable;
import java.io.IOException;
@ -22,7 +22,7 @@ import java.io.InputStream;
import java.io.OutputStream;
import java.net.URI;
import org.springframework.boot.cloudnativebuildpack.io.IOConsumer;
import org.springframework.boot.buildpack.platform.io.IOConsumer;
/**
* HTTP transport used by the {@link DockerApi}.

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker;
package org.springframework.boot.buildpack.platform.docker;
import java.io.IOException;
import java.io.InputStream;
@ -38,9 +38,9 @@ import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;
import org.springframework.boot.cloudnativebuildpack.io.Content;
import org.springframework.boot.cloudnativebuildpack.io.IOConsumer;
import org.springframework.boot.cloudnativebuildpack.json.SharedObjectMapper;
import org.springframework.boot.buildpack.platform.io.Content;
import org.springframework.boot.buildpack.platform.io.IOConsumer;
import org.springframework.boot.buildpack.platform.json.SharedObjectMapper;
/**
* {@link Http} implementation backed by a {@link HttpClient}.

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker;
package org.springframework.boot.buildpack.platform.docker;
import java.io.IOException;
import java.io.InputStream;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker;
package org.springframework.boot.buildpack.platform.docker;
import java.io.PrintStream;
import java.util.function.Consumer;

@ -14,13 +14,13 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker;
package org.springframework.boot.buildpack.platform.docker;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.Consumer;
import org.springframework.boot.cloudnativebuildpack.docker.ProgressUpdateEvent.ProgressDetail;
import org.springframework.boot.buildpack.platform.docker.ProgressUpdateEvent.ProgressDetail;
/**
* {@link UpdateListener} that calculates the total progress of the entire pull operation

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker;
package org.springframework.boot.buildpack.platform.docker;
/**
* Base class for update events published by Docker.

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker;
package org.springframework.boot.buildpack.platform.docker;
/**
* Listener for update events published from the {@link DockerApi}.

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker.type;
package org.springframework.boot.buildpack.platform.docker.type;
import java.io.IOException;
import java.io.OutputStream;
@ -30,7 +30,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import org.springframework.boot.cloudnativebuildpack.json.SharedObjectMapper;
import org.springframework.boot.buildpack.platform.json.SharedObjectMapper;
import org.springframework.util.Assert;
import org.springframework.util.StreamUtils;
import org.springframework.util.StringUtils;

@ -14,9 +14,9 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker.type;
package org.springframework.boot.buildpack.platform.docker.type;
import org.springframework.boot.cloudnativebuildpack.io.TarArchive;
import org.springframework.boot.buildpack.platform.io.TarArchive;
import org.springframework.util.Assert;
/**

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker.type;
package org.springframework.boot.buildpack.platform.docker.type;
import java.io.IOException;
import java.io.InputStream;
@ -27,7 +27,7 @@ import java.util.stream.Collectors;
import com.fasterxml.jackson.databind.JsonNode;
import org.springframework.boot.cloudnativebuildpack.json.MappedObject;
import org.springframework.boot.buildpack.platform.json.MappedObject;
/**
* Image details as returned from {@code Docker inspect}.

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker.type;
package org.springframework.boot.buildpack.platform.docker.type;
import java.io.IOException;
import java.io.OutputStream;
@ -33,13 +33,13 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import org.springframework.boot.cloudnativebuildpack.io.Content;
import org.springframework.boot.cloudnativebuildpack.io.IOConsumer;
import org.springframework.boot.cloudnativebuildpack.io.InspectedContent;
import org.springframework.boot.cloudnativebuildpack.io.Layout;
import org.springframework.boot.cloudnativebuildpack.io.Owner;
import org.springframework.boot.cloudnativebuildpack.io.TarArchive;
import org.springframework.boot.cloudnativebuildpack.json.SharedObjectMapper;
import org.springframework.boot.buildpack.platform.io.Content;
import org.springframework.boot.buildpack.platform.io.IOConsumer;
import org.springframework.boot.buildpack.platform.io.InspectedContent;
import org.springframework.boot.buildpack.platform.io.Layout;
import org.springframework.boot.buildpack.platform.io.Owner;
import org.springframework.boot.buildpack.platform.io.TarArchive;
import org.springframework.boot.buildpack.platform.json.SharedObjectMapper;
import org.springframework.util.Assert;
/**

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker.type;
package org.springframework.boot.buildpack.platform.docker.type;
import java.lang.invoke.MethodHandles;
import java.util.Collections;
@ -25,7 +25,7 @@ import java.util.function.Consumer;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import org.springframework.boot.cloudnativebuildpack.json.MappedObject;
import org.springframework.boot.buildpack.platform.json.MappedObject;
/**
* Image configuration information.

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker.type;
package org.springframework.boot.buildpack.platform.docker.type;
import org.springframework.util.Assert;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker.type;
package org.springframework.boot.buildpack.platform.docker.type;
import java.io.File;
import java.util.regex.Matcher;

@ -14,18 +14,18 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker.type;
package org.springframework.boot.buildpack.platform.docker.type;
import java.io.IOException;
import java.io.OutputStream;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import org.springframework.boot.cloudnativebuildpack.io.Content;
import org.springframework.boot.cloudnativebuildpack.io.IOConsumer;
import org.springframework.boot.cloudnativebuildpack.io.InspectedContent;
import org.springframework.boot.cloudnativebuildpack.io.Layout;
import org.springframework.boot.cloudnativebuildpack.io.TarArchive;
import org.springframework.boot.buildpack.platform.io.Content;
import org.springframework.boot.buildpack.platform.io.IOConsumer;
import org.springframework.boot.buildpack.platform.io.InspectedContent;
import org.springframework.boot.buildpack.platform.io.Layout;
import org.springframework.boot.buildpack.platform.io.TarArchive;
import org.springframework.util.Assert;
/**

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker.type;
package org.springframework.boot.buildpack.platform.docker.type;
import java.util.Random;
import java.util.stream.IntStream;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker.type;
package org.springframework.boot.buildpack.platform.docker.type;
import java.math.BigInteger;
import java.nio.charset.StandardCharsets;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.io;
package org.springframework.boot.buildpack.platform.io;
import java.io.ByteArrayInputStream;
import java.io.File;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.io;
package org.springframework.boot.buildpack.platform.io;
import java.io.ByteArrayOutputStream;
import java.io.File;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.io;
package org.springframework.boot.buildpack.platform.io;
/**
* A user and group ID that can be used to indicate file ownership.

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.io;
package org.springframework.boot.buildpack.platform.io;
import java.io.File;
import java.io.IOException;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.io;
package org.springframework.boot.buildpack.platform.io;
import java.io.Closeable;
import java.io.IOException;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.json;
package org.springframework.boot.buildpack.platform.json;
import java.io.IOException;
import java.io.InputStream;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.json;
package org.springframework.boot.buildpack.platform.json;
import java.io.IOException;
import java.io.InputStream;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.json;
package org.springframework.boot.buildpack.platform.json;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.socket;
package org.springframework.boot.buildpack.platform.socket;
import java.io.IOException;
import java.net.InetAddress;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.socket;
package org.springframework.boot.buildpack.platform.socket;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.socket;
package org.springframework.boot.buildpack.platform.socket;
import java.io.IOException;
import java.io.InputStream;
@ -26,7 +26,7 @@ import com.sun.jna.LastErrorException;
import com.sun.jna.Native;
import com.sun.jna.Platform;
import org.springframework.boot.cloudnativebuildpack.socket.FileDescriptor.Handle;
import org.springframework.boot.buildpack.platform.socket.FileDescriptor.Handle;
/**
* A {@link Socket} implementation for Linux of BSD domain sockets.

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.socket;
package org.springframework.boot.buildpack.platform.socket;
import java.io.Closeable;
import java.io.IOException;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.socket;
package org.springframework.boot.buildpack.platform.socket;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.socket;
package org.springframework.boot.buildpack.platform.socket;
import java.io.FileNotFoundException;
import java.io.IOException;

@ -17,4 +17,4 @@
/**
* Low-level {@link java.net.Socket} implementations required for local Docker access.
*/
package org.springframework.boot.cloudnativebuildpack.socket;
package org.springframework.boot.buildpack.platform.socket;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.toml;
package org.springframework.boot.buildpack.platform.toml;
import java.util.Arrays;
import java.util.stream.Collectors;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.build;
package org.springframework.boot.buildpack.platform.build;
import java.util.LinkedHashMap;
import java.util.Map;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.build;
package org.springframework.boot.buildpack.platform.build;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
@ -30,9 +30,9 @@ import org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
import org.springframework.boot.cloudnativebuildpack.docker.type.ImageReference;
import org.springframework.boot.cloudnativebuildpack.io.Owner;
import org.springframework.boot.cloudnativebuildpack.io.TarArchive;
import org.springframework.boot.buildpack.platform.docker.type.ImageReference;
import org.springframework.boot.buildpack.platform.io.Owner;
import org.springframework.boot.buildpack.platform.io.TarArchive;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;

@ -14,15 +14,15 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.build;
package org.springframework.boot.buildpack.platform.build;
import java.io.IOException;
import org.junit.jupiter.api.Test;
import org.springframework.boot.cloudnativebuildpack.docker.type.Image;
import org.springframework.boot.cloudnativebuildpack.docker.type.ImageConfig;
import org.springframework.boot.cloudnativebuildpack.json.AbstractJsonTests;
import org.springframework.boot.buildpack.platform.docker.type.Image;
import org.springframework.boot.buildpack.platform.docker.type.ImageConfig;
import org.springframework.boot.buildpack.platform.json.AbstractJsonTests;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.build;
package org.springframework.boot.buildpack.platform.build;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
@ -24,15 +24,15 @@ import org.junit.jupiter.api.Test;
import org.mockito.ArgumentCaptor;
import org.mockito.stubbing.Answer;
import org.springframework.boot.cloudnativebuildpack.docker.DockerApi;
import org.springframework.boot.cloudnativebuildpack.docker.DockerApi.ContainerApi;
import org.springframework.boot.cloudnativebuildpack.docker.DockerApi.ImageApi;
import org.springframework.boot.cloudnativebuildpack.docker.DockerApi.VolumeApi;
import org.springframework.boot.cloudnativebuildpack.docker.TotalProgressPullListener;
import org.springframework.boot.cloudnativebuildpack.docker.type.Image;
import org.springframework.boot.cloudnativebuildpack.docker.type.ImageArchive;
import org.springframework.boot.cloudnativebuildpack.docker.type.ImageReference;
import org.springframework.boot.cloudnativebuildpack.io.TarArchive;
import org.springframework.boot.buildpack.platform.docker.DockerApi;
import org.springframework.boot.buildpack.platform.docker.DockerApi.ContainerApi;
import org.springframework.boot.buildpack.platform.docker.DockerApi.ImageApi;
import org.springframework.boot.buildpack.platform.docker.DockerApi.VolumeApi;
import org.springframework.boot.buildpack.platform.docker.TotalProgressPullListener;
import org.springframework.boot.buildpack.platform.docker.type.Image;
import org.springframework.boot.buildpack.platform.docker.type.ImageArchive;
import org.springframework.boot.buildpack.platform.docker.type.ImageReference;
import org.springframework.boot.buildpack.platform.io.TarArchive;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.build;
package org.springframework.boot.buildpack.platform.build;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
@ -37,11 +37,11 @@ import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
import org.springframework.boot.cloudnativebuildpack.docker.type.Image;
import org.springframework.boot.cloudnativebuildpack.docker.type.ImageArchive;
import org.springframework.boot.cloudnativebuildpack.docker.type.ImageConfig;
import org.springframework.boot.cloudnativebuildpack.docker.type.ImageReference;
import org.springframework.boot.cloudnativebuildpack.json.AbstractJsonTests;
import org.springframework.boot.buildpack.platform.docker.type.Image;
import org.springframework.boot.buildpack.platform.docker.type.ImageArchive;
import org.springframework.boot.buildpack.platform.docker.type.ImageConfig;
import org.springframework.boot.buildpack.platform.docker.type.ImageReference;
import org.springframework.boot.buildpack.platform.json.AbstractJsonTests;
import org.springframework.util.FileCopyUtils;
import static org.assertj.core.api.Assertions.assertThat;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.build;
package org.springframework.boot.buildpack.platform.build;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
@ -33,18 +33,18 @@ import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.mockito.stubbing.Answer;
import org.springframework.boot.cloudnativebuildpack.docker.DockerApi;
import org.springframework.boot.cloudnativebuildpack.docker.DockerApi.ContainerApi;
import org.springframework.boot.cloudnativebuildpack.docker.DockerApi.ImageApi;
import org.springframework.boot.cloudnativebuildpack.docker.DockerApi.VolumeApi;
import org.springframework.boot.cloudnativebuildpack.docker.type.ContainerConfig;
import org.springframework.boot.cloudnativebuildpack.docker.type.ContainerContent;
import org.springframework.boot.cloudnativebuildpack.docker.type.ContainerReference;
import org.springframework.boot.cloudnativebuildpack.docker.type.ImageReference;
import org.springframework.boot.cloudnativebuildpack.docker.type.VolumeName;
import org.springframework.boot.cloudnativebuildpack.io.IOConsumer;
import org.springframework.boot.cloudnativebuildpack.io.TarArchive;
import org.springframework.boot.cloudnativebuildpack.json.SharedObjectMapper;
import org.springframework.boot.buildpack.platform.docker.DockerApi;
import org.springframework.boot.buildpack.platform.docker.DockerApi.ContainerApi;
import org.springframework.boot.buildpack.platform.docker.DockerApi.ImageApi;
import org.springframework.boot.buildpack.platform.docker.DockerApi.VolumeApi;
import org.springframework.boot.buildpack.platform.docker.type.ContainerConfig;
import org.springframework.boot.buildpack.platform.docker.type.ContainerContent;
import org.springframework.boot.buildpack.platform.docker.type.ContainerReference;
import org.springframework.boot.buildpack.platform.docker.type.ImageReference;
import org.springframework.boot.buildpack.platform.docker.type.VolumeName;
import org.springframework.boot.buildpack.platform.io.IOConsumer;
import org.springframework.boot.buildpack.platform.io.TarArchive;
import org.springframework.boot.buildpack.platform.json.SharedObjectMapper;
import org.springframework.util.FileCopyUtils;
import static org.assertj.core.api.Assertions.assertThat;

@ -14,12 +14,12 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.build;
package org.springframework.boot.buildpack.platform.build;
import org.junit.jupiter.api.Test;
import org.springframework.boot.cloudnativebuildpack.docker.type.ContainerConfig.Update;
import org.springframework.boot.cloudnativebuildpack.docker.type.VolumeName;
import org.springframework.boot.buildpack.platform.docker.type.ContainerConfig.Update;
import org.springframework.boot.buildpack.platform.docker.type.VolumeName;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.build;
package org.springframework.boot.buildpack.platform.build;
import java.io.ByteArrayOutputStream;
import java.io.InputStreamReader;
@ -25,11 +25,11 @@ import java.util.function.Consumer;
import org.junit.jupiter.api.Test;
import org.springframework.boot.cloudnativebuildpack.docker.LogUpdateEvent;
import org.springframework.boot.cloudnativebuildpack.docker.TotalProgressEvent;
import org.springframework.boot.cloudnativebuildpack.docker.type.Image;
import org.springframework.boot.cloudnativebuildpack.docker.type.ImageReference;
import org.springframework.boot.cloudnativebuildpack.docker.type.VolumeName;
import org.springframework.boot.buildpack.platform.docker.LogUpdateEvent;
import org.springframework.boot.buildpack.platform.docker.TotalProgressEvent;
import org.springframework.boot.buildpack.platform.docker.type.Image;
import org.springframework.boot.buildpack.platform.docker.type.ImageReference;
import org.springframework.boot.buildpack.platform.docker.type.VolumeName;
import org.springframework.util.FileCopyUtils;
import static org.assertj.core.api.Assertions.assertThat;

@ -14,14 +14,14 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.build;
package org.springframework.boot.buildpack.platform.build;
import java.util.Collections;
import org.junit.jupiter.api.Test;
import org.springframework.boot.cloudnativebuildpack.docker.type.Image;
import org.springframework.boot.cloudnativebuildpack.docker.type.ImageConfig;
import org.springframework.boot.buildpack.platform.docker.type.Image;
import org.springframework.boot.buildpack.platform.docker.type.ImageConfig;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;

@ -14,13 +14,13 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker;
package org.springframework.boot.buildpack.platform.docker;
import java.io.IOException;
import org.junit.jupiter.api.Test;
import org.springframework.boot.cloudnativebuildpack.docker.type.ImageReference;
import org.springframework.boot.buildpack.platform.docker.type.ImageReference;
import org.springframework.boot.testsupport.testcontainers.DisabledIfDockerUnavailable;
/**

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker;
package org.springframework.boot.buildpack.platform.docker;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
@ -31,21 +31,21 @@ import org.mockito.InOrder;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.springframework.boot.cloudnativebuildpack.docker.DockerApi.ContainerApi;
import org.springframework.boot.cloudnativebuildpack.docker.DockerApi.ImageApi;
import org.springframework.boot.cloudnativebuildpack.docker.DockerApi.VolumeApi;
import org.springframework.boot.cloudnativebuildpack.docker.Http.Response;
import org.springframework.boot.cloudnativebuildpack.docker.type.ContainerConfig;
import org.springframework.boot.cloudnativebuildpack.docker.type.ContainerContent;
import org.springframework.boot.cloudnativebuildpack.docker.type.ContainerReference;
import org.springframework.boot.cloudnativebuildpack.docker.type.Image;
import org.springframework.boot.cloudnativebuildpack.docker.type.ImageArchive;
import org.springframework.boot.cloudnativebuildpack.docker.type.ImageReference;
import org.springframework.boot.cloudnativebuildpack.docker.type.VolumeName;
import org.springframework.boot.cloudnativebuildpack.io.Content;
import org.springframework.boot.cloudnativebuildpack.io.IOConsumer;
import org.springframework.boot.cloudnativebuildpack.io.Owner;
import org.springframework.boot.cloudnativebuildpack.io.TarArchive;
import org.springframework.boot.buildpack.platform.docker.DockerApi.ContainerApi;
import org.springframework.boot.buildpack.platform.docker.DockerApi.ImageApi;
import org.springframework.boot.buildpack.platform.docker.DockerApi.VolumeApi;
import org.springframework.boot.buildpack.platform.docker.Http.Response;
import org.springframework.boot.buildpack.platform.docker.type.ContainerConfig;
import org.springframework.boot.buildpack.platform.docker.type.ContainerContent;
import org.springframework.boot.buildpack.platform.docker.type.ContainerReference;
import org.springframework.boot.buildpack.platform.docker.type.Image;
import org.springframework.boot.buildpack.platform.docker.type.ImageArchive;
import org.springframework.boot.buildpack.platform.docker.type.ImageReference;
import org.springframework.boot.buildpack.platform.docker.type.VolumeName;
import org.springframework.boot.buildpack.platform.io.Content;
import org.springframework.boot.buildpack.platform.io.IOConsumer;
import org.springframework.boot.buildpack.platform.io.Owner;
import org.springframework.boot.buildpack.platform.io.TarArchive;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker;
package org.springframework.boot.buildpack.platform.docker;
import java.net.URI;
import java.net.URISyntaxException;

@ -14,14 +14,14 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker;
package org.springframework.boot.buildpack.platform.docker;
import java.util.Iterator;
import org.junit.jupiter.api.Test;
import org.springframework.boot.cloudnativebuildpack.docker.Errors.Error;
import org.springframework.boot.cloudnativebuildpack.json.AbstractJsonTests;
import org.springframework.boot.buildpack.platform.docker.Errors.Error;
import org.springframework.boot.buildpack.platform.json.AbstractJsonTests;
import static org.assertj.core.api.Assertions.assertThat;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker;
package org.springframework.boot.buildpack.platform.docker;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
@ -41,7 +41,7 @@ import org.mockito.Captor;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.springframework.boot.cloudnativebuildpack.docker.Http.Response;
import org.springframework.boot.buildpack.platform.docker.Http.Response;
import org.springframework.util.StreamUtils;
import static org.assertj.core.api.Assertions.assertThat;

@ -14,11 +14,11 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker;
package org.springframework.boot.buildpack.platform.docker;
import org.junit.jupiter.api.Test;
import org.springframework.boot.cloudnativebuildpack.docker.ProgressUpdateEvent.ProgressDetail;
import org.springframework.boot.buildpack.platform.docker.ProgressUpdateEvent.ProgressDetail;
import static org.assertj.core.api.Assertions.assertThat;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker;
package org.springframework.boot.buildpack.platform.docker;
import java.io.IOException;
import java.io.InputStream;

@ -14,11 +14,11 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker;
package org.springframework.boot.buildpack.platform.docker;
import org.junit.jupiter.api.Test;
import org.springframework.boot.cloudnativebuildpack.docker.ProgressUpdateEvent.ProgressDetail;
import org.springframework.boot.buildpack.platform.docker.ProgressUpdateEvent.ProgressDetail;
import static org.assertj.core.api.Assertions.assertThat;

@ -14,11 +14,11 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker;
package org.springframework.boot.buildpack.platform.docker;
import org.junit.jupiter.api.Test;
import org.springframework.boot.cloudnativebuildpack.docker.ProgressUpdateEvent.ProgressDetail;
import org.springframework.boot.buildpack.platform.docker.ProgressUpdateEvent.ProgressDetail;
import static org.assertj.core.api.Assertions.assertThat;

@ -14,11 +14,11 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker;
package org.springframework.boot.buildpack.platform.docker;
import org.junit.jupiter.api.Test;
import org.springframework.boot.cloudnativebuildpack.json.AbstractJsonTests;
import org.springframework.boot.buildpack.platform.json.AbstractJsonTests;
import static org.assertj.core.api.Assertions.assertThat;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker;
package org.springframework.boot.buildpack.platform.docker;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker;
package org.springframework.boot.buildpack.platform.docker;
import java.io.IOException;
import java.util.ArrayList;
@ -24,8 +24,8 @@ import java.util.function.Consumer;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.springframework.boot.cloudnativebuildpack.json.AbstractJsonTests;
import org.springframework.boot.cloudnativebuildpack.json.JsonStream;
import org.springframework.boot.buildpack.platform.json.AbstractJsonTests;
import org.springframework.boot.buildpack.platform.json.JsonStream;
import static org.assertj.core.api.Assertions.assertThat;

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudnativebuildpack.docker.type;
package org.springframework.boot.buildpack.platform.docker.type;
import java.io.ByteArrayOutputStream;
import java.nio.charset.StandardCharsets;
@ -22,7 +22,7 @@ import java.nio.charset.StandardCharsets;
import org.junit.jupiter.api.Test;
import org.skyscreamer.jsonassert.JSONAssert;
import org.springframework.boot.cloudnativebuildpack.json.AbstractJsonTests;
import org.springframework.boot.buildpack.platform.json.AbstractJsonTests;
import org.springframework.util.StreamUtils;
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save