diff --git a/testcontainers/pom.xml b/testcontainers/pom.xml index 657173d..989790f 100644 --- a/testcontainers/pom.xml +++ b/testcontainers/pom.xml @@ -25,9 +25,9 @@ 17 - 5.3.0 - 1.21.0 - 1.4.1 + 5.4.0 + 2.0.1 + 1.6.0 1.7.36 1.2.25 @@ -87,6 +87,8 @@ ${central.publishing.maven.plugin.version} true + true + testcontainers-hbase-${project.version} sonatype diff --git a/testcontainers/src/main/java/org/geomesa/testcontainers/hbase/HBaseContainer.java b/testcontainers/src/main/java/org/geomesa/testcontainers/hbase/HBaseContainer.java index 76b62ee..c12a5b1 100644 --- a/testcontainers/src/main/java/org/geomesa/testcontainers/hbase/HBaseContainer.java +++ b/testcontainers/src/main/java/org/geomesa/testcontainers/hbase/HBaseContainer.java @@ -15,7 +15,6 @@ import org.testcontainers.containers.output.OutputFrame; import org.testcontainers.containers.output.Slf4jLogConsumer; import org.testcontainers.containers.wait.strategy.Wait; -import org.testcontainers.shaded.org.apache.commons.io.IOUtils; import org.testcontainers.utility.DockerImageName; import java.io.File; @@ -83,7 +82,7 @@ public HBaseContainer(DockerImageName imageName) { .onExit() .thenApply((p) -> { try (InputStream is = p.getInputStream()) { - return IOUtils.toString(is, StandardCharsets.UTF_8).trim(); + return new String(is.readAllBytes(), StandardCharsets.UTF_8).trim(); } catch (IOException e) { logger.error("Error reading hostname:", e); return null; @@ -139,7 +138,7 @@ public HBaseContainer withGeoMesaDistributedRuntime(String jarHostPath) { * @return contents of the hbase-site.xml */ public String getHBaseSiteXml() { - return copyFileFromContainer("/opt/hbase/conf/hbase-site.xml", (is) -> IOUtils.toString(is, StandardCharsets.UTF_8)); + return copyFileFromContainer("/opt/hbase/conf/hbase-site.xml", (is) -> new String(is.readAllBytes(), StandardCharsets.UTF_8)); } private static int getFreePort() {