From 8f0f0e199f8cb4d868afc174b07b986a0ebad4b8 Mon Sep 17 00:00:00 2001 From: Danielen Cestari Nunes Date: Thu, 1 Aug 2024 11:31:05 -0300 Subject: [PATCH] Update Dependency and Include pre-commit (#293) * update dependency and include pre-commit * update version - bump for 2.1.27 --- .pre-commit-config.yaml | 24 ++++++----- README.md | 2 +- pom.xml | 42 +++++++++++++------ .../com/mercadopago/MercadoPagoConfig.java | 2 +- .../mercadopago/client/MercadoPagoClient.java | 2 +- 5 files changed, 46 insertions(+), 26 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cf0127f8..391c5513 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,13 +1,17 @@ repos: - - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks - rev: v2.2.0 + # Websec hook is MANDATORY, DO NOT comment it. + - repo: https://github.com/melisource/fury_websec-git-hooks + rev: v1.1.0 hooks: - - id: pretty-format-java - args: [ --autofix ] - - repo: https://github.com/gherynos/pre-commit-java - rev: v0.1.0 + - id: pre_commit_hook + stages: [commit] + - id: post_commit_hook + stages: [post-commit] + + # Datasec hook is MANDATORY, DO NOT comment it. + - repo: https://github.com/melisource/fury_datasec-git-hooks + rev: 1.0.3 hooks: - - id: checkstyle - args: - - -c - - .code_quality/checkstyle_rules.xml + - id: pre_commit_hook + stages: [commit] + verbose: true \ No newline at end of file diff --git a/README.md b/README.md index e673518c..673bd06f 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ already. com.mercadopago sdk-java - 2.1.26 + 2.1.27 ``` diff --git a/pom.xml b/pom.xml index 6240dcd9..89d6efea 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.mercadopago sdk-java - 2.1.26 + 2.1.27 jar Mercadopago SDK @@ -14,7 +14,7 @@ Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt + https://www.apache.org/licenses/LICENSE-2.0.txt @@ -27,6 +27,7 @@ + ${project.artifactId}-${project.version} src/main/java @@ -100,7 +101,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.6.3 + 3.8.0 1.8 none @@ -237,23 +238,31 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.6.3 + 3.8.0 org.apache.velocity velocity - org.apache.velocity - velocity-tools - - - org.apache.maven - maven-core + commons-collections + commons-collections + + org.apache.commons + commons-collections4 + 4.4 + + + + org.apache.commons + commons-compress + 1.26.2 + + org.apache.velocity velocity-engine-core @@ -270,6 +279,13 @@ org.apache.velocity.tools velocity-tools-generic 3.1 + + + + commons-collections + commons-collections + + @@ -279,9 +295,9 @@ - org.apache.httpcomponents - httpclient - 4.5.13 + org.apache.httpcomponents.client5 + httpclient5 + 5.3.1 diff --git a/src/main/java/com/mercadopago/MercadoPagoConfig.java b/src/main/java/com/mercadopago/MercadoPagoConfig.java index 9470608a..2492ab77 100644 --- a/src/main/java/com/mercadopago/MercadoPagoConfig.java +++ b/src/main/java/com/mercadopago/MercadoPagoConfig.java @@ -15,7 +15,7 @@ /** Mercado Pago configuration class. */ public class MercadoPagoConfig { - public static final String CURRENT_VERSION = "2.1.26"; + public static final String CURRENT_VERSION = "2.1.27"; public static final String PRODUCT_ID = "BC32A7VTRPP001U8NHJ0"; diff --git a/src/main/java/com/mercadopago/client/MercadoPagoClient.java b/src/main/java/com/mercadopago/client/MercadoPagoClient.java index 855cc1e0..28071814 100644 --- a/src/main/java/com/mercadopago/client/MercadoPagoClient.java +++ b/src/main/java/com/mercadopago/client/MercadoPagoClient.java @@ -1,7 +1,7 @@ package com.mercadopago.client; import static java.util.Objects.nonNull; -import static org.apache.commons.collections.MapUtils.isNotEmpty; +import static org.apache.commons.collections4.MapUtils.isNotEmpty; import static org.apache.commons.lang3.StringUtils.isNotBlank; import com.google.gson.JsonObject;