Purposes of three JAR files

16 views
Skip to first unread message

David Pinn

unread,
Dec 25, 2010, 7:07:13 PM12/25/10
to google-we...@googlegroups.com
What purposes are served by each of the main GWT JAR files: gwt-user.jar, gwt-servlet.jar, and gwt-dev.jar?

I'm putting together a project definition in Intellij IDEA, and would like to know which JAR files to include, and at which scope (compile, test, provided, runtime)

zixzigma

unread,
Dec 26, 2010, 2:00:38 AM12/26/10
to Google Web Toolkit

1- gwt-servlet scope: default(compile)

2- gwt-user - scope: provided

default scope is "compile", therefore you dont need to specify it

<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>${gwt.version}</version>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwt.version}</version>
<scope>provided</scope>
</dependency>

Thomas Broyer

unread,
Dec 27, 2010, 12:47:57 PM12/27/10
to google-we...@googlegroups.com


On Sunday, December 26, 2010 1:07:13 AM UTC+1, David Pinn wrote:
What purposes are served by each of the main GWT JAR files: gwt-user.jar, gwt-servlet.jar, and gwt-dev.jar?

gwt-dev contains the DevMode and the Compiler (and everything related, such as the Generator and Linker classes).

gwt-user contains all the "user" code (that can be compiled to JavaScript, and the support servlet code). Apart from linkers and generators (which most apps don't use), you'll only depend on gwt-user. gwt-user will in turn only be used by the DevMode during development, and the GWT Compiler.

gwt-servlet is (should be) a subset of gwt-user containing only the server-side (servlet) classes. This is what you'll deploy on your server.
Reply all
Reply to author
Forward
0 new messages