Skip to content
Gradle plugin to support GWT related tasks.
Java Makefile
Branch: master
Clone or download
Pull request Compare This branch is 93 commits ahead of steffenschaefer:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc Updated docs Aug 27, 2019
examples Added documents Jul 9, 2017
gradle/wrapper Added configuration to publish to the Gradle Plugin Portal Jul 16, 2019
gwt-gradle-plugin
.gitignore Updated documentation Aug 7, 2019
.travis.yml Customsied build commands in .travis.yml Nov 11, 2017
LICENSE License Header Update Sep 8, 2014
Makefile Merge branch 'master' of github.com:jiakuan/gwt-gradle-plugin Aug 7, 2019
Makefile.txt
README.md
build.gradle
gradle.properties
gradlew Add Gradle 5.2.x support #21 Feb 14, 2019
gradlew.bat Add Gradle 5.2.x support #21 Feb 14, 2019
settings.gradle Implements basic functionality for gwt compilation Sep 4, 2013

README.md

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 the Gradle Plugin Portal.

Using the plugins DSL:

plugins {
  id "org.wisepersist.gwt" version "1.0.13"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.org.wisepersist:gwt-gradle-plugin:1.0.13"
  }
}

apply plugin: "org.wisepersist.gwt"

GWT Gradle Plugin is also 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.10'
    }
}

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.

You can’t perform that action at this time.