Currently, I am working on a java project that utilizes the Guava EventBus. My goal is to integrate this code into a GWT project without having to rewrite it entirely. While I am aware that GWT comes with its own built-in EventBus, making changes to my Java project's dependencies could potentially cause issues.
In order to incorporate Guava into my GWT project, I have included the guava and gwt-guava jars. Additionally, I have added:
<inherits name="com.google.common.collect.Collect"/>
to my gwt.xml file, which has allowed Guava to work successfully for other classes within the GWT project (such as Strings).
The main challenge lies in using Guava's EventBus instead of GWT's provided EventBus. This switch is necessary as my Java project is not compatible with GWT's implementation. The dilemma arises from the fact that while the GWT project relies on GWT's EventBus, the Java project uses the Guava version. Is there a way to bridge these two implementations seamlessly? Ideally, I would like to substitute the Guava EventBus from the Java project with the one in my GWT project.
Is there a method to utilize Guava EventBus with GWT without altering the dependencies in the original Java project?