A future-proof port of the com.google.gwt.user.client.rpc
GWT module, with no dependency on gwt-user
(besides the Java Runtime Emulation), to prepare for GWT 3 / J2Cl.
-
Add the dependency to your build.
For Maven:
<dependency> <groupId>org.gwtproject.callback</groupId> <artifactId>gwt-callback</artifactId> <version>HEAD-SNAPSHOT</version> </dependency>
For Gradle:
implementation("org.gwtproject.callback:gwt-callback:HEAD-SNAPSHOT")
-
Update your GWT module to use
<inherits name="org.gwtproject.callback.AsyncCallback" />
-
Change the
import
s in your Java source files:import org.gwtproject.callback.client;
To build the module:
- run
mvn clean verify
on the parent directory.
GWT Callback requires GWT 2.8.2 or greater!
GWT Callback does not depend on any other module.