From 66fc7da92d83e300ff74c37820a7b9c708e106d6 Mon Sep 17 00:00:00 2001 From: Ernest Sadykov Date: Wed, 19 Oct 2022 10:46:51 +0100 Subject: [PATCH] deleted deprecated class and the project (#1175) --- .../build.gradle | 1 - .../build.gradle | 1 - .../build.gradle | 1 - .../build.gradle | 1 - .../build.gradle | 1 - libraries/transfer/build.gradle | 25 -------------- .../transfer/ImageStreamProvider.java | 33 ------------------- settings.gradle | 2 +- 8 files changed, 1 insertion(+), 64 deletions(-) delete mode 100644 libraries/transfer/build.gradle delete mode 100644 libraries/transfer/src/main/java/org/datatransferproject/transfer/ImageStreamProvider.java diff --git a/extensions/data-transfer/portability-data-transfer-backblaze/build.gradle b/extensions/data-transfer/portability-data-transfer-backblaze/build.gradle index d7aea2bc9..0352d06ab 100644 --- a/extensions/data-transfer/portability-data-transfer-backblaze/build.gradle +++ b/extensions/data-transfer/portability-data-transfer-backblaze/build.gradle @@ -23,7 +23,6 @@ dependencies { compile project(':portability-spi-cloud') compile project(':portability-spi-transfer') compile project(':portability-transfer') - compile project(':libraries:transfer') compile('software.amazon.awssdk:s3:2.15.24') compile('org.apache.commons:commons-lang3:3.11') diff --git a/extensions/data-transfer/portability-data-transfer-deezer/build.gradle b/extensions/data-transfer/portability-data-transfer-deezer/build.gradle index ed9190134..eb1972b38 100644 --- a/extensions/data-transfer/portability-data-transfer-deezer/build.gradle +++ b/extensions/data-transfer/portability-data-transfer-deezer/build.gradle @@ -27,7 +27,6 @@ repositories { dependencies { compile project(':portability-spi-cloud') compile project(':portability-spi-transfer') - compile project(':libraries:transfer') compile("com.google.api-client:google-api-client:${googleApiClient}") } diff --git a/extensions/data-transfer/portability-data-transfer-facebook/build.gradle b/extensions/data-transfer/portability-data-transfer-facebook/build.gradle index a5e81189c..901164a48 100644 --- a/extensions/data-transfer/portability-data-transfer-facebook/build.gradle +++ b/extensions/data-transfer/portability-data-transfer-facebook/build.gradle @@ -22,7 +22,6 @@ plugins { dependencies { compile project(":portability-spi-cloud") compile project(":portability-spi-transfer") - compile project(":libraries:transfer") compile("com.restfb:restfb:2.14.0") compile("commons-io:commons-io:2.6") diff --git a/extensions/data-transfer/portability-data-transfer-google/build.gradle b/extensions/data-transfer/portability-data-transfer-google/build.gradle index fa66ef9c0..29983fec9 100644 --- a/extensions/data-transfer/portability-data-transfer-google/build.gradle +++ b/extensions/data-transfer/portability-data-transfer-google/build.gradle @@ -21,7 +21,6 @@ plugins { dependencies { compile project(':portability-spi-cloud') compile project(':portability-spi-transfer') - compile project(':libraries:transfer') compile("com.google.gdata:core:${gdataVersion}") { exclude(module: 'jetty-util') diff --git a/extensions/data-transfer/portability-data-transfer-koofr/build.gradle b/extensions/data-transfer/portability-data-transfer-koofr/build.gradle index ad22acdf7..0c68baf98 100644 --- a/extensions/data-transfer/portability-data-transfer-koofr/build.gradle +++ b/extensions/data-transfer/portability-data-transfer-koofr/build.gradle @@ -21,7 +21,6 @@ plugins { dependencies { compile project(':portability-spi-cloud') compile project(':portability-spi-transfer') - compile project(':libraries:transfer') compile("com.squareup.okhttp3:logging-interceptor:${okHttpVersion}") compile("com.squareup.okhttp3:okhttp:${okHttpVersion}") diff --git a/libraries/transfer/build.gradle b/libraries/transfer/build.gradle deleted file mode 100644 index 67293436b..000000000 --- a/libraries/transfer/build.gradle +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2018 The Data Transfer Project Authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -plugins { - id 'maven' - id 'signing' -} - -dependencies { - compile project(':portability-spi-transfer') -} - -configurePublication(project) diff --git a/libraries/transfer/src/main/java/org/datatransferproject/transfer/ImageStreamProvider.java b/libraries/transfer/src/main/java/org/datatransferproject/transfer/ImageStreamProvider.java deleted file mode 100644 index 3132016e6..000000000 --- a/libraries/transfer/src/main/java/org/datatransferproject/transfer/ImageStreamProvider.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright 2018 The Data Transfer Project Authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.datatransferproject.transfer; - -import java.io.IOException; -import java.net.HttpURLConnection; -import java.net.URL; - -@Deprecated // prefer ConnectionProvider -public class ImageStreamProvider { - - /** Gets an HttpURLConnection to an image, given its URL. */ - public HttpURLConnection getConnection(String urlStr) throws IOException { - URL url = new URL(urlStr); - HttpURLConnection conn = (HttpURLConnection) url.openConnection(); - conn.connect(); - return conn; - } -} diff --git a/settings.gradle b/settings.gradle index 94a79b805..4936a7917 100644 --- a/settings.gradle +++ b/settings.gradle @@ -2,7 +2,7 @@ rootProject.name = 'org.datatransferproject' include ':portability-types-client', ':portability-types-transfer', ':portability-types-common' include ':portability-spi-service', ':portability-spi-api', ':portability-spi-cloud', ':portability-spi-transfer' -include ':libraries:security', ':libraries:config', ':libraries:auth', ':libraries:transfer' +include ':libraries:security', ':libraries:config', ':libraries:auth' include ':portability-test-utilities' include ':portability-api-launcher'