forked from joelhandwell/gwt-jetty-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
61 lines (51 loc) · 1.14 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
apply plugin: 'war'
apply plugin: 'java'
apply plugin: 'gwt'
apply plugin: 'jetty'
apply plugin: 'eclipse'
sourceCompatibility = 1.8
targetCompatibility = 1.8
version = '1.0'
buildscript {
repositories {
jcenter() //repository where to fetch gwt gradle plugin
}
dependencies {
classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.6'
}
}
dependencies {
compile 'com.google.gwt:gwt-user:2.8.0-SNAPSHOT'
}
repositories {
jcenter()
maven { url 'https://oss.sonatype.org/content/repositories/google-snapshots' }
}
compileJava{
options.incremental = true
}
gwt {
gwtVersion = '2.8.0-SNAPSHOT'
logLevel = 'ERROR'
minHeapSize = "256M";
maxHeapSize = "1024M";
// specify your main module
modules 'joelhandwell.HelloWorld'
sourceSets {
main {
java {
srcDir 'src/main/java'
}
}
}
superDev {
noPrecompile = true
}
// specify the deployment port
jettyRunWar.httpPort = 8089
}
task jettyDraftWar(type: JettyRunWar) {
dependsOn draftWar
dependsOn.remove('war')
webApp=draftWar.archivePath
}