-
Notifications
You must be signed in to change notification settings - Fork 5
cat gwt
Zealin edited this page Oct 19, 2012
·
5 revisions
Gradle GWT Plugin
Examples for single and multi folder projects
GWT configuration closure: Standard values (if not set in closure):
- style = 'OBF'
- warFolder = 'src/main/webapp'
- workers = '1'
- codeSrvStartupUrl = 'http://localhost:8888/'
apply plugin: 'cat-gwt'
dependencies {
gwtBuild (
[project(path: ':', configuration: 'gwtCompile')]
)
compile 'com.google.gwt:gwt-servlet:' + ext.gwtVersion
}
sourceSets {
main {
java {
srcDir 'src'
}
resources {
srcDir 'src'
}
}
}
gwt {
modules {
StockWatcher {
modulename = 'com.google.gwt.sample.stockwatcher.StockWatcher'
}
}
eclipse {
codeSrvStartupUrl 'http://localhost:8888/index.html'
}
warFolder = 'war'
workers = '2'
}
- /baseDir/build.gradle
- /baseDir/settings.gradle
- /baseDir/project1/build.gradle
- /baseDir/project2/build.gradle
apply plugin: 'cat-gwt'
dependencies {
gwtBuild (
[project(path: ':projectX', configuration: 'gwtCompile')]
)
}
subprojects {
// apply plugin: 'xxx'
sourceSets {
main {
java {
srcDir 'src'
}
resources {
srcDir 'src'
}
}
}
}
gwt {
modules {
projectX {
modulename = 'cc.catalysts.gwt.example.projectX'
}
}
eclipse {
codeSrvStartupUrl 'http://localhost:8888/index.html'
}
}
include 'project1', 'project2'
apply plugin: 'cat-gwt'
artifacts { // if needed
gwtCompile jar
}
dependencies {
compile project(':project2') // depends on project2
compile 'com.google.gwt:gwt-servlet:2.4.0' // if needed
}
apply plugin: 'cat-gwt'
artifacts { // if needed
gwtCompile jar
}
dependencies {
compile 'com.google.gwt:gwt-servlet:2.4.0' // if needed
}