gradle: Update deps, format files (#1316)
* gradle: Update dependencies Also made the version numbers global to make updating easier, also this way we can't have mismatches where different projects use diffrent versions of a dep * cache: Fix TitleDumper test * gradle: Format build files * httpserviceplus: Remove unneeded deps
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
description = 'Cache Updater'
|
||||
|
||||
dependencies {
|
||||
implementation group: 'org.springframework.boot', name: 'spring-boot-starter', version: '2.1.6.RELEASE'
|
||||
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-jdbc', version: '2.1.6.RELEASE'
|
||||
implementation group: 'org.springframework.boot', name: 'spring-boot-devtools', version: '2.1.6.RELEASE'
|
||||
implementation group: 'mysql', name: 'mysql-connector-java', version: '8.0.17'
|
||||
annotationProcessor group: 'org.projectlombok', name: 'lombok', version: lombok
|
||||
|
||||
compileOnly group: 'org.projectlombok', name: 'lombok', version: lombok
|
||||
|
||||
implementation group: 'io.minio', name: 'minio', version: minio
|
||||
implementation group: 'mysql', name: 'mysql-connector-java', version: mysqlConnectorJava
|
||||
implementation group: 'org.springframework.boot', name: 'spring-boot-devtools', version: springboot
|
||||
implementation group: 'org.springframework.boot', name: 'spring-boot-starter', version: springboot
|
||||
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-jdbc', version: springboot
|
||||
implementation group: 'org.sql2o', name: 'sql2o', version: sql2o
|
||||
implementation project(':cache-client')
|
||||
implementation group: 'org.sql2o', name: 'sql2o', version: '1.6.0'
|
||||
implementation group: 'io.minio', name: 'minio', version: '6.0.8'
|
||||
compileOnly group: 'org.projectlombok', name: 'lombok', version: '1.18.8'
|
||||
annotationProcessor group: 'org.projectlombok', name: 'lombok', version: '1.18.8'
|
||||
}
|
||||
|
||||
@@ -32,6 +32,7 @@ import io.minio.errors.InsufficientDataException;
|
||||
import io.minio.errors.InternalException;
|
||||
import io.minio.errors.InvalidArgumentException;
|
||||
import io.minio.errors.InvalidBucketNameException;
|
||||
import io.minio.errors.InvalidResponseException;
|
||||
import io.minio.errors.NoResponseException;
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.IOException;
|
||||
@@ -87,7 +88,7 @@ public class CacheUploader implements Runnable
|
||||
|
||||
minioClient.putObject(minioBucket, path, new ByteArrayInputStream(data), data.length, "binary/octet-stream");
|
||||
}
|
||||
catch (ErrorResponseException | InsufficientDataException | InternalException | InvalidArgumentException | InvalidBucketNameException | NoResponseException | IOException | InvalidKeyException | NoSuchAlgorithmException | XmlPullParserException ex)
|
||||
catch (ErrorResponseException | InsufficientDataException | InternalException | InvalidArgumentException | InvalidBucketNameException | NoResponseException | IOException | InvalidKeyException | NoSuchAlgorithmException | XmlPullParserException | InvalidResponseException ex)
|
||||
{
|
||||
logger.warn("unable to upload data to store", ex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user