opensearch-project / cross-cluster-replication

Synchronize your data across multiple clusters for lower latencies and higher availability
https://opensearch.org/docs/latest/replication-plugin/index/
Apache License 2.0
48 stars 58 forks source link

[BUG] Unable to run gradle run as the command fails with "GradleException: Failed to create Jar file" #1312

Closed skumarp7 closed 7 months ago

skumarp7 commented 7 months ago

I'm trying to build and run CCR in my local and im not able to build the plugin locally in a freshly cloned project. The gradle run/ gradle clean/ gradle build commands are failing with below error:

JDK version: OpenJDK-11.0.2 CCR Plugin Version: 2.11.0

$ ./gradlew run --stacktrace

FAILURE: Build failed with an exception.

A problem occurred configuring root project 'opensearch-cross-cluster-replication'.

java.util.concurrent.ExecutionException: org.gradle.api.GradleException: Failed to create Jar file /home/skumarp/.gradle/caches/jars-9/6abf203a3d0290f2fc6dc41dd82cb00d/jackson-core-2.16.1.jar.

Looks like this issue is related to https://github.com/gradle/gradle/issues/25434 and https://github.com/gradle/gradle/issues/27156. The fix is available in gradle 8.4 and above.

monusingh-1 commented 7 months ago

Fixed