suztomo commented on a change in pull request #13740:
URL: https://github.com/apache/beam/pull/13740#discussion_r563827172
##########
File path:
buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
##########
@@ -83,6 +83,14 @@ class BeamModulePlugin implements Plugin<Project> {
"""
static AtomicInteger startingExpansionPortNumber = new AtomicInteger(18091)
+ /** List of paths to the projects that require Guava 25. Hadoop and
Cassandra have dependency to
+ * methods available in the old Guava version (BEAM-11626) */
+ static List<String> guava25Projects = [
+ ":sdks:java:io:cassandra",
+ ":sdks:java:io:hadoop-format",
Review comment:
I didn't find they declare Guava dependencies. I see hadoop-common does
not declare Guava dependency. I couldn't find a module (directory) named
"hadoop-input-format".
##########
File path:
buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
##########
@@ -436,7 +444,7 @@ class BeamModulePlugin implements Plugin<Project> {
def google_oauth_clients_version = "1.31.0"
// Try to keep grpc_version consistent with gRPC version in
google_cloud_platform_libraries_bom
def grpc_version = "1.32.2"
- def guava_version = "25.1-jre"
+ def guava_version = guava25Projects.contains(project.path) ? "25.1-jre" :
"30.1-jre"
Review comment:
> In all existing cases where a project requires a library version that
deviates from library.java, we don't use library.java and instead hard-code
that dependency in the project's build.gradle.
That's great information. Let me try that.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]