Hi,I developed one utility using gradle.That utility’s test cases are working fine.I want to use this utility as dependency in my custom gradle java plugin.My custom java plugin is also building properly but whenever I tried to use this custom plugin in my main gradle project the task associated with plugin is failing by throwing following dependency issue:
- Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:hivetest’.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
Caused by: java.lang.NoSuchMethodError: org.apache.hive.service.cli.operation.LogDivertAppender.setWriter(Ljava/io/Writer;)V
at org.apache.hive.service.cli.operation.LogDivertAppender.(LogDivertAppender.java:166)
at org.apache.hive.service.cli.operation.OperationManager.initOperationLogCapture(OperationManager.java:85)
at org.apache.hive.service.cli.operation.OperationManager.init(OperationManager.java:63)
at org.apache.hive.service.CompositeService.init(CompositeService.java:59)
at org.apache.hive.service.cli.session.SessionManager.init(SessionManager.java:85)
at org.apache.hive.service.CompositeService.init(CompositeService.java:59)
at org.apache.hive.service.cli.CLIService.init(CLIService.java:118)
at org.apache.hive.service.CompositeService.init(CompositeService.java:59)
at org.apache.hive.service.server.HiveServer2.init(HiveServer2.java:100)
at com.datametica.hiveunit.core.MiniCluster.(MiniCluster.java:126)
at com.datametica.hiveunit.HiveUnit.(HiveUnit.java:58)
at com.datametica.hiveUnitPlugin.gradle.HiveUnitTask.sendHuFilesPathToHive(HiveUnitTask.java:50)
at com.datametica.hiveUnitPlugin.gradle.HiveUnitTask.hiveUnitTask(HiveUnitTask.java:40)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:226)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:219)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:208)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:585)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:568)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
… 57 more
BUILD FAILED
surprisingly main gradle project clean build tasks are working properly also test cases of utlity and plugin project are working properly.I know its some dependecy conflict but unable to get why its not getting in utlity project itself and which dependency is causing this issue?please let me know as I am struggling with this issue since long time.