Giter VIP home page Giter VIP logo

gwt-gradle-plugin's Introduction

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.1.11"
}

Using legacy plugin application:

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

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.1.11'
    }
}

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

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

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 6.6+

Starting from gwt-gradle-plugin:1.1.4+, you can use GWT 2.9.0 with Gradle 6.6+.

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.

gwt-gradle-plugin's People

Contributors

steffenschaefer avatar jiakuan avatar evpaassen avatar bronogard avatar jamesxnelson avatar turbo87 avatar epeee avatar sothmann avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.