From 81f1668a51dcc4bc700d8f45f54fa5ed33ab5b1d Mon Sep 17 00:00:00 2001 From: Martin Lippert Date: Mon, 12 Feb 2024 13:42:20 +0100 Subject: [PATCH] GH-1189: use apache commons io instead of maven runtime IO utils to reduce dependencies on maven runtime code --- .../ide/eclipse/boot/core/initializr/InitializrService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eclipse-extensions/org.springframework.ide.eclipse.boot/src/org/springframework/ide/eclipse/boot/core/initializr/InitializrService.java b/eclipse-extensions/org.springframework.ide.eclipse.boot/src/org/springframework/ide/eclipse/boot/core/initializr/InitializrService.java index ecaffc165..d32a3ca6a 100644 --- a/eclipse-extensions/org.springframework.ide.eclipse.boot/src/org/springframework/ide/eclipse/boot/core/initializr/InitializrService.java +++ b/eclipse-extensions/org.springframework.ide.eclipse.boot/src/org/springframework/ide/eclipse/boot/core/initializr/InitializrService.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2015, 2016 Pivotal, Inc. + * Copyright (c) 2015, 2024 Pivotal, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -17,7 +17,7 @@ import java.util.Collection; import java.util.Map; import java.util.function.Supplier; -import org.apache.maven.shared.utils.io.IOUtil; +import org.apache.commons.io.IOUtils; import org.springframework.ide.eclipse.boot.core.BootActivator; import org.springframework.ide.eclipse.boot.core.BootPreferences; import org.springframework.ide.eclipse.boot.core.SimpleUriBuilder; @@ -83,7 +83,7 @@ public interface InitializrService { } URLConnection urlConnection = urlConnectionFactory.createConnection(new URL(builder.toString())); urlConnection.connect(); - return IOUtil.toString(urlConnection.getInputStream(), "UTF8"); + return IOUtils.toString(urlConnection.getInputStream(), "UTF8"); } }; }