From 712378b3ffae43126e25d3e8c16d22be76d9a015 Mon Sep 17 00:00:00 2001 From: LamGC Date: Wed, 8 Feb 2023 10:12:33 +0800 Subject: [PATCH] =?UTF-8?q?build(dependencies):=20=E6=9B=B4=E6=96=B0=20tel?= =?UTF-8?q?egrambots=20=E4=BE=9D=E8=B5=96=E9=A1=B9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 telegrambots 依赖项更新至 6.5.0, 支持新版 Api; 已确认 telegrambots 6.5.0 版本升级了jackson-databind 版本, 因此移除 jackson-databind 的显性依赖声明. --- scalabot-app/build.gradle.kts | 8 ++------ scalabot-extension/build.gradle.kts | 6 +----- scalabot-meta/build.gradle.kts | 6 +----- 3 files changed, 4 insertions(+), 16 deletions(-) diff --git a/scalabot-app/build.gradle.kts b/scalabot-app/build.gradle.kts index 1b06030..fda8a14 100644 --- a/scalabot-app/build.gradle.kts +++ b/scalabot-app/build.gradle.kts @@ -29,12 +29,8 @@ dependencies { implementation("org.jdom:jdom2:2.0.6.1") - implementation("org.telegram:telegrambots-abilities:6.3.0") - implementation("org.telegram:telegrambots:6.3.0") - - // Added as a mitigation measure for vulnerabilities. - // When the relevant reference dependency updates it, it will be removed. - implementation("com.fasterxml.jackson.core:jackson-databind:2.13.4.2") + implementation("org.telegram:telegrambots-abilities:6.5.0") + implementation("org.telegram:telegrambots:6.5.0") implementation("io.prometheus:simpleclient:0.16.0") implementation("io.prometheus:simpleclient_httpserver:0.16.0") diff --git a/scalabot-extension/build.gradle.kts b/scalabot-extension/build.gradle.kts index aa390c7..ca244c4 100644 --- a/scalabot-extension/build.gradle.kts +++ b/scalabot-extension/build.gradle.kts @@ -9,13 +9,9 @@ plugins { dependencies { implementation("commons-codec:commons-codec:1.15") - api("org.telegram:telegrambots-abilities:6.3.0") + api("org.telegram:telegrambots-abilities:6.5.0") api("org.slf4j:slf4j-api:2.0.3") - // Added as a mitigation measure for vulnerabilities. - // When the relevant reference dependency updates it, it will be removed. - implementation("com.fasterxml.jackson.core:jackson-databind:2.13.4.2") - testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.0") testImplementation("org.mockito:mockito-core:4.8.0") testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine") diff --git a/scalabot-meta/build.gradle.kts b/scalabot-meta/build.gradle.kts index af25280..089772d 100644 --- a/scalabot-meta/build.gradle.kts +++ b/scalabot-meta/build.gradle.kts @@ -12,11 +12,7 @@ dependencies { api("org.eclipse.aether:aether-api:$aetherVersion") implementation("org.eclipse.aether:aether-util:$aetherVersion") - implementation("org.telegram:telegrambots-meta:6.3.0") - - // Added as a mitigation measure for vulnerabilities. - // When the relevant reference dependency updates it, it will be removed. - implementation("com.fasterxml.jackson.core:jackson-databind:2.13.4.2") + implementation("org.telegram:telegrambots-meta:6.5.0") api("com.google.code.gson:gson:2.9.0")