Replace Base64Utils with JDK's Base64
See gh-33967
This commit is contained in:
committed by
Moritz Halbritter
parent
b62b88372f
commit
bc7fc90550
@@ -17,6 +17,7 @@
|
||||
package org.springframework.boot.gradle.tasks.bundling;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Base64;
|
||||
|
||||
import org.gradle.api.GradleException;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
@@ -26,7 +27,6 @@ import org.junit.jupiter.api.io.TempDir;
|
||||
import org.springframework.boot.buildpack.platform.docker.configuration.DockerConfiguration;
|
||||
import org.springframework.boot.buildpack.platform.docker.configuration.DockerHost;
|
||||
import org.springframework.boot.gradle.junit.GradleProjectBuilder;
|
||||
import org.springframework.util.Base64Utils;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||
@@ -176,7 +176,7 @@ class DockerSpecTests {
|
||||
}
|
||||
|
||||
String decoded(String value) {
|
||||
return new String(Base64Utils.decodeFromString(value));
|
||||
return new String(Base64.getDecoder().decode(value));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user