From fc5566c7a55d01c06d94a1898aac2bb2d2b3f5af Mon Sep 17 00:00:00 2001 From: Jendrik Johannes Date: Thu, 4 Jul 2024 13:27:07 +0200 Subject: [PATCH] fix: quick fix for Guava patching not always working Signed-off-by: Jendrik Johannes --- .../com.hedera.gradle.patch-modules.gradle.kts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gradle/plugins/src/main/kotlin/com.hedera.gradle.patch-modules.gradle.kts b/gradle/plugins/src/main/kotlin/com.hedera.gradle.patch-modules.gradle.kts index 872607940..31a69b693 100644 --- a/gradle/plugins/src/main/kotlin/com.hedera.gradle.patch-modules.gradle.kts +++ b/gradle/plugins/src/main/kotlin/com.hedera.gradle.patch-modules.gradle.kts @@ -75,6 +75,20 @@ extraJavaModuleInfo { requires("com.google.common.util.concurrent.internal") requires("java.logging") } + module("guava-32.1.3-jre.jar", "com.google.common") { + /** + * Repetition of the rule above: + * + * There is an issue when the version is "android", but the selected Jar + * with classifier is "jre". If this causes a problem depends on the local + * Gradle dependency cache state (most likely). + * This is an issue that needs to be investigated and fixed in + * https://github.com/gradlex-org/extra-java-module-info + */ + exportAllPackages() + requires("com.google.common.util.concurrent.internal") + requires("java.logging") + } module("com.google.protobuf:protobuf-java", "com.google.protobuf") { exportAllPackages() requireAllDefinedDependencies()