Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

steffenschaefer/gwt-gradle-plugin

Repository files navigation

GWT Gradle Plugin

This plugin makes it easy to build projects using GWT. It provides several tasks to support the development and configures several aspects of your project to work with GWT automatically.

Among other things, the plugin provides these features:

  • Running the GWT compiler and automatic inclusion of the compiled stuff in your *.war file
  • Starting GWT Dev Mode
  • Support for Super Dev Mode (GWT 2.5+)
  • Configuration of different GWT modules for development and production
  • GWT specific configuration of Eclipse projects

Resources

Examples

Several example projects can be found in /examples.

Usage

The following example shows the code to set up gwt-gradle-plugin for a GWT web application project using Maven/Gradle standard layout.

buildscript {
    repositories {
        jcenter()
        // Alternatively use:
//        maven {
//            url 'http://dl.bintray.com/steffenschaefer/maven'
//        }
    }
    dependencies {
        classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.6'
    }
}

apply plugin: 'war'
apply plugin: 'gwt'

gwt {
    gwtVersion='2.7.0'
    modules '<YOUR-GWT-MODULE>'
}

This will configure your GWT web project to execute the GWT compiler and include the compiler output into your *.war file. The code shown above also configures all GWT core dependencies (gwt-dev, gwt-user, gwt-servlet, ...).

To build the *.war file including your compiled GWT modules, simply call "gradle build". If you want to start the GWT development mode simply call "gradle gwtDev".

To learn about different scenarios or more specific configuration needs, please refer to the Documentation

About

Gradle plugin to support GWT (http://www.gwtproject.org/) related tasks.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages