I have a Java lib and I need to convert it to JS. I found the solution GWT to create utility javascript library to use gwt-exporter. I never used GWT before. I tried GWT-exporter. Getting started but it's not clear how to use it. Simply how to run the project to generate JS?
pom.xml
<dependencies>
<dependency>
<groupId>org.timepedia.exporter</groupId>
<artifactId>gwtexporter</artifactId>
<version>2.4.0</version>
<scope>provided</scope>
</dependency>
</dependencies>
Java class:
import org.timepedia.exporter.client.ExporterUtil;
public class JS implements EntryPoint {
public void onModuleLoad() {
// Export all Exportable classes
ExporterUtil.exportAll();
}
}
Where to find dependency for EntryPoint
?
Maybe someone can share working example?