Skip to content

bronogard/gwt-gradle-plugin

 
 

Repository files navigation

GWT Gradle Plugin

Build Status

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.

It was originally created by Steffen Schaefer. Really appreciate his effort on making this great plugin.

In last two years, there were no updates in the original git repo, so I plan to continue the maintenance in this fork.

For more information, please see the new documentation site I created: http://gwt-gradle-plugin.documentnode.io

Usage

GWT Gradle Plugin is available in Maven central repository.

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 {
        mavenCentral()
    }
    dependencies {
        classpath 'org.wisepersist:gwt-gradle-plugin:1.0.9'
    }
}

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

gwt {
    gwtVersion='2.8.1'
    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.

How to build

If you are on macOS or Linux, you can use the following commands to clean and build the project.

make clean build

If you are on Windows, you can use gradle wrapper to build.

gradlew.bat clean build

Gradle 5.2+

If you are using Gradle 5.2+, please use gwt-gradle-plugin:1.0.8+, which is compatible with Gradle 4.6+.

For Gradle <=4.5, please use gwt-gradle-plugin:1.0.6.

About

Gradle plugin to support GWT related tasks.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 99.5%
  • Makefile 0.5%